[Android] Fix Toolbar theme

Geoffrey Métais git at videolan.org
Tue Mar 3 16:37:09 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar  3 13:13:45 2015 +0100| [b1fc7d0f7694cd6469e340a3469c1f31485f02c6] | committer: Geoffrey Métais

Fix Toolbar theme

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

 vlc-android/res/layout/toolbar.xml                            |    4 +++-
 vlc-android/src/org/videolan/vlc/gui/MainActivity.java        |    1 -
 vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java |    1 -
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/res/layout/toolbar.xml b/vlc-android/res/layout/toolbar.xml
index 1ccc78d..f40ae7e 100644
--- a/vlc-android/res/layout/toolbar.xml
+++ b/vlc-android/res/layout/toolbar.xml
@@ -6,4 +6,6 @@
     android:layout_width="match_parent"
     android:layout_height="?attr/actionBarSize"
     app:navigationContentDescription="@string/abc_action_bar_up_description"
-    android:background="?attr/background_actionbar"/>
\ No newline at end of file
+    app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
+    android:background="?attr/background_actionbar"
+    app:navigationIcon="?attr/homeAsUpIndicator"/>
\ No newline at end of file
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index e1cbd3e..fdd1520 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -188,7 +188,6 @@ public class MainActivity extends ActionBarActivity implements OnItemClickListen
         setContentView(R.layout.main);
 
         Toolbar toolbar = (Toolbar) findViewById(R.id.main_toolbar);
-        toolbar.setTitleTextColor(Util.getColorFromAttribute(mContext, R.attr.font_actionbar_selected));
         setSupportActionBar(toolbar);
 
         mSlidingPane = (SlidingPaneLayout) findViewById(R.id.pane);
diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 58660e8..cf062bd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -307,7 +307,6 @@ public class PreferencesActivity extends PreferenceActivity implements OnSharedP
             root.addView(content);
         }
         bar.setTitle(R.string.preferences);
-        bar.setTitleTextColor(Util.getColorFromAttribute(this, R.attr.font_actionbar_selected));
 
         bar.setNavigationOnClickListener(new View.OnClickListener() {
             @Override



More information about the Android mailing list