diff options
author | Edward Wang <ewang@cyngn.com> | 2015-04-13 14:17:00 -0700 |
---|---|---|
committer | Howard Harte <hharte@cyngn.com> | 2015-04-16 20:14:29 +0000 |
commit | c3e36031beb7e48248c5261b36935035413aad61 (patch) | |
tree | 7be72048f47bc6126014af3fc2966c103429fce8 | |
parent | 1835a6660458f1a781e5946d291db5eebb37b486 (diff) | |
download | android_hardware_qcom_fm-c3e36031beb7e48248c5261b36935035413aad61.tar.gz android_hardware_qcom_fm-c3e36031beb7e48248c5261b36935035413aad61.tar.bz2 android_hardware_qcom_fm-c3e36031beb7e48248c5261b36935035413aad61.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.java | 3 |
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 92f1019..f1ff4d5 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java @@ -1641,7 +1641,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; @@ -2548,6 +2547,7 @@ public class FMRadio extends Activity mTunedStation.setPI(0); mTunedStation.setPty(0); updateStationInfoToUI(); + enableRadioOnOffUI(); }catch (RemoteException e) { e.printStackTrace(); } @@ -2621,6 +2621,7 @@ public class FMRadio extends Activity mERadioTextScroller.stopScroll(); mUpdatePickerValue = true; updateStationInfoToUI(); + enableRadioOnOffUI(); } Runnable mRadioEnabled = new Runnable() { |