[Android] UI : Apply theme before creating the view

Alexandre Perraud git at videolan.org
Wed Feb 25 16:03:23 CET 2015


vlc-ports/android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Feb 25 15:39:26 2015 +0100| [80fdb5a88cfbb883cad48c698c28608f5c661f2e] | committer: Alexandre Perraud

UI : Apply theme before creating the view

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=80fdb5a88cfbb883cad48c698c28608f5c661f2e
---

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index ca08650..64335f7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -178,13 +178,13 @@ public class MainActivity extends ActionBarActivity implements OnItemClickListen
         if (mScanNeeded)
             MediaLibrary.getInstance().loadMediaItems();
 
+        /* Theme must be applied before super.onCreate */
+        applyTheme();
+
         super.onCreate(savedInstanceState);
 
         /*** Start initializing the UI ***/
 
-
-        applyTheme();
-
         setContentView(R.layout.main);
 
         mSlidingPane = (SlidingPaneLayout) findViewById(R.id.pane);



More information about the Android mailing list