diff options
author | Edward Wang <ewang@cyngn.com> | 2015-04-13 14:17:00 -0700 |
---|---|---|
committer | Matt Wagantall <mwagantall@cyngn.com> | 2016-02-19 14:07:44 -0800 |
commit | 48d5b35825118afe35e7c441c0eb15044e5dbee9 (patch) | |
tree | 8b86bc6097b27909f12c730e4ad7c74099d61cd2 /fmapp2/src/com | |
parent | c41b1230f86a7af5c422f4fa1d014be1167101ee (diff) | |
download | android_hardware_qcom_fm-48d5b35825118afe35e7c441c0eb15044e5dbee9.tar.gz android_hardware_qcom_fm-48d5b35825118afe35e7c441c0eb15044e5dbee9.tar.bz2 android_hardware_qcom_fm-48d5b35825118afe35e7c441c0eb15044e5dbee9.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)
Diffstat (limited to 'fmapp2/src/com')
-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 9b5f979..062e269 100644 --- a/fmapp2/src/com/caf/fmradio/FMRadio.java +++ b/fmapp2/src/com/caf/fmradio/FMRadio.java @@ -1647,7 +1647,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; @@ -2602,6 +2601,7 @@ public class FMRadio extends Activity mTunedStation.setPI(0); mTunedStation.setPty(0); updateStationInfoToUI(); + enableRadioOnOffUI(); }catch (RemoteException e) { e.printStackTrace(); } @@ -2675,6 +2675,7 @@ public class FMRadio extends Activity mERadioTextScroller.stopScroll(); mUpdatePickerValue = true; updateStationInfoToUI(); + enableRadioOnOffUI(); } Runnable mRadioEnabled = new Runnable() { |