diff options
author | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-07-26 15:00:08 +0530 |
---|---|---|
committer | Venkateshwarlu Domakonda <vdomak@codeaurora.org> | 2014-07-28 18:42:19 +0530 |
commit | 91c6b0118687284d050548da8601b1e73e960588 (patch) | |
tree | a764921190d32a813ccedcea508f1f6ba1a0bcff /fmapp2/src/com/caf/fmradio/FMRadio.java | |
parent | ef9dc16ae6068a830a55b366b00ba91a11cf6b67 (diff) | |
download | android_hardware_qcom_fm-91c6b0118687284d050548da8601b1e73e960588.tar.gz android_hardware_qcom_fm-91c6b0118687284d050548da8601b1e73e960588.tar.bz2 android_hardware_qcom_fm-91c6b0118687284d050548da8601b1e73e960588.zip |
FM: Fix the issue with color of text
Default color of text changed in the recent android version.
Set the text color as white.
Change-Id: I545cbf5824e7436e8fdb6e0cf70bbc5d6e13a5f3
Diffstat (limited to 'fmapp2/src/com/caf/fmradio/FMRadio.java')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadio.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java index f4ed775..15f16ce 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java @@ -96,6 +96,7 @@ import com.caf.fmradio.HorizontalNumberPicker.OnValueChangeListener; import com.caf.fmradio.HorizontalNumberPicker.Scale; import android.content.SharedPreferences; +import android.graphics.Color; public class FMRadio extends Activity { @@ -1870,6 +1871,11 @@ public class FMRadio extends Activity }else { setRecordingStartImage(); } + for (int nButton = 0; nButton < MAX_PRESETS_PER_PAGE; nButton++) { + if (mPresetButtons[nButton] != null) { + mPresetButtons[nButton].setTextColor(Color.WHITE); + } + } }else { if (mRadioTextScroller != null) { mRadioTextScroller.stopScroll(); @@ -1877,6 +1883,11 @@ public class FMRadio extends Activity if (mERadioTextScroller != null) { mERadioTextScroller.stopScroll(); } + for (int nButton = 0; nButton < MAX_PRESETS_PER_PAGE; nButton++) { + if (mPresetButtons[nButton] != null) { + mPresetButtons[nButton].setTextColor(Color.BLACK); + } + } } if (mForwardButton != null) { mForwardButton.setVisibility(((bEnable == true) ? View.VISIBLE |