summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Wang <ewang@cyngn.com>2015-04-13 14:17:00 -0700
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 20:05:24 +0200
commit17c9a4a8f821defccb6cbf8a3293094c86f75c40 (patch)
tree0796eab8251a906f6ba6bf6c6cb5a2dc3c1a383a
parent523593c235ec27856c535d25f4d32b467d60bb56 (diff)
downloadandroid_hardware_qcom_fm-17c9a4a8f821defccb6cbf8a3293094c86f75c40.tar.gz
android_hardware_qcom_fm-17c9a4a8f821defccb6cbf8a3293094c86f75c40.tar.bz2
android_hardware_qcom_fm-17c9a4a8f821defccb6cbf8a3293094c86f75c40.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 64523aa..21bab21 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() {