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)
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index 137cc94..aa2dc6e 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -1607,7 +1607,6 @@
bStatus = mService.fmOn();
if(bStatus) {
tuneRadio(FmSharedPreferences.getTunedFrequency());
- enableRadioOnOffUI();
}else {
Log.e(LOGTAG, "mService.fmOn failed");
mCommandFailed = CMD_FMON;
@@ -2556,6 +2555,7 @@
mTunedStation.setPI(0);
mTunedStation.setPty(0);
updateStationInfoToUI();
+ enableRadioOnOffUI();
}catch (RemoteException e) {
e.printStackTrace();
}
@@ -2613,6 +2613,7 @@
mERadioTextScroller.stopScroll();
mUpdatePickerValue = true;
updateStationInfoToUI();
+ enableRadioOnOffUI();
}
Runnable mRadioEnabled = new Runnable() {