[Android] Use common focus color

Geoffrey Métais git at videolan.org
Thu Aug 31 17:48:12 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Aug 31 16:17:03 2017 +0200| [5f69a614b36d791988343bbb3cd3fd2642c1f4f5] | committer: Geoffrey Métais

Use common focus color

> https://code.videolan.org/videolan/vlc-android/commit/5f69a614b36d791988343bbb3cd3fd2642c1f4f5
---

 vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index f3d97a32d..e083ba7e3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -110,7 +110,6 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
 
     private TextView mChaptersTitle;
     private int mTextColor;
-    private static final int FOCUSED_TEXT_COLOR = ContextCompat.getColor(VLCApplication.getAppContext(), R.color.orange300);
     private PlaybackService mService;
 
     private IPlaybackSettingsController mPlaybackController;
@@ -490,7 +489,7 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
     public void onFocusChange(View v, boolean hasFocus) {
         if (v instanceof TextView)
             ((TextView) v).setTextColor(v.hasFocus() ?
-                    FOCUSED_TEXT_COLOR : mTextColor);
+                    UiTools.ITEM_FOCUS_ON : mTextColor);
         mToast.setText(mAdapter.getSelectedAdvOptionHelp());
         mToast.show();
     }



More information about the Android mailing list