summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Wang <ewang@cyngn.com>2015-04-13 14:17:00 -0700
committerBruno Martins <bgcngm@gmail.com>2017-09-13 15:18:04 +0100
commit29716979c989feb2aee67dae8f4741d3326ab4d9 (patch)
tree25fe8ef86d3bb53ef438a8028ff81c0c51559ffc
parente1ae14d779a0a720bdcb69c1e0e8bf95241a3387 (diff)
downloadandroid_hardware_qcom_fm-29716979c989feb2aee67dae8f4741d3326ab4d9.tar.gz
android_hardware_qcom_fm-29716979c989feb2aee67dae8f4741d3326ab4d9.tar.bz2
android_hardware_qcom_fm-29716979c989feb2aee67dae8f4741d3326ab4d9.zip
FM: reenable radio text visibility after station info updated
After radio station info updated, radio text view is set to GONE. We need turn it back on if FM is still enabled. Change-Id: I7acea564a352693e19d9e6d934d641327b90be7e (cherry picked from commit 086a510710b073b4b5c5cd4a0f72341dc6690b84)
-rw-r--r--fmapp2/src/com/caf/fmradio/FMRadio.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index 1ee8e97..41af705 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -1686,7 +1686,6 @@ public class FMRadio extends Activity
bStatus = mService.fmOn();
if(bStatus) {
tuneRadio(FmSharedPreferences.getTunedFrequency());
- enableRadioOnOffUI();
}else {
Log.e(LOGTAG, "mService.fmOn failed");
mCommandFailed = CMD_FMON;
@@ -2627,6 +2626,7 @@ public class FMRadio extends Activity
mTunedStation.setPI(0);
mTunedStation.setPty(0);
updateStationInfoToUI();
+ enableRadioOnOffUI();
}catch (RemoteException e) {
e.printStackTrace();
}
@@ -2684,6 +2684,7 @@ public class FMRadio extends Activity
mERadioTextScroller.stopScroll();
mUpdatePickerValue = true;
updateStationInfoToUI();
+ enableRadioOnOffUI();
}
Runnable mRadioEnabled = new Runnable() {