summaryrefslogtreecommitdiffstats
path: root/fmapp2
diff options
context:
space:
mode:
authorRupesh Tatiya <rtatiya@codeaurora.org>2016-01-28 16:24:34 +0530
committerArne Coucheron <arco68@gmail.com>2016-03-22 00:14:29 +0100
commit9106d4e7b2a113478e5f3934fda12a808f111ef1 (patch)
tree447b5643c93e16be476a56e848baded8ff8a0b25 /fmapp2
parentef247c45282a19c0f9f3042f2c0a503ed84d39b1 (diff)
downloadandroid_hardware_qcom_fm-9106d4e7b2a113478e5f3934fda12a808f111ef1.tar.gz
android_hardware_qcom_fm-9106d4e7b2a113478e5f3934fda12a808f111ef1.tar.bz2
android_hardware_qcom_fm-9106d4e7b2a113478e5f3934fda12a808f111ef1.zip
Disable/enable radio on factory reset
Recording was failing to stop on factory reset. Also mute button status was not being reset. Also, FM Radio should also be restarted. CRs-Fixed: 968376 Change-Id: If9966a887a09a5fd6813637b61b075616362ff39
Diffstat (limited to 'fmapp2')
-rw-r--r--fmapp2/src/com/caf/fmradio/FMRadio.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/fmapp2/src/com/caf/fmradio/FMRadio.java b/fmapp2/src/com/caf/fmradio/FMRadio.java
index e331aef..5a0808a 100644
--- a/fmapp2/src/com/caf/fmradio/FMRadio.java
+++ b/fmapp2/src/com/caf/fmradio/FMRadio.java
@@ -1003,9 +1003,10 @@ public class FMRadio extends Activity
String action = data.getAction();
if (action != null) {
if (action.equals(Settings.RESTORE_FACTORY_DEFAULT_ACTION)) {
+ disableRadio();
RestoreDefaults();
- enableRadioOnOffUI();
- tuneRadio(FmSharedPreferences.DEFAULT_NO_FREQUENCY);
+ FmSharedPreferences.setTunedFrequency(FmSharedPreferences.DEFAULT_NO_FREQUENCY);
+ enableRadio();
FmSharedPreferences.addStation("", FmSharedPreferences.DEFAULT_NO_FREQUENCY, 0);
}
}