summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdward Wang <ewang@cyngn.com>2015-04-13 14:17:00 -0700
committerHoward Harte <hharte@cyngn.com>2015-04-14 23:53:43 +0000
commit18e9d6b690100ce58923e457e74c41a8afd20da2 (patch)
treeb46362c36e89b7bf669e6889ee799036a6f401fa
parentfdcab8602273e1c3fab0e27a0e71b98b48e160d6 (diff)
downloadandroid_hardware_qcom_fm-18e9d6b690100ce58923e457e74c41a8afd20da2.tar.gz
android_hardware_qcom_fm-18e9d6b690100ce58923e457e74c41a8afd20da2.tar.bz2
android_hardware_qcom_fm-18e9d6b690100ce58923e457e74c41a8afd20da2.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 4b9573c..90da15d 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -1637,7 +1637,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;
@@ -2547,6 +2546,7 @@ public class FMRadio extends Activity
mTunedStation.setPI(0);
mTunedStation.setPty(0);
updateStationInfoToUI();
+ enableRadioOnOffUI();
}catch (RemoteException e) {
e.printStackTrace();
}
@@ -2620,6 +2620,7 @@ public class FMRadio extends Activity
mERadioTextScroller.stopScroll();
mUpdatePickerValue = true;
updateStationInfoToUI();
+ enableRadioOnOffUI();
}
Runnable mRadioEnabled = new Runnable() {