Skip to content
Snippets Groups Projects
Commit c0de8eed authored by Rupesh Tatiya's avatar Rupesh Tatiya Committed by Gerrit - the friendly Code Review server
Browse files

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
parent aae2653b
Branches
No related tags found
No related merge requests found
...@@ -970,9 +970,10 @@ public class FMRadio extends Activity ...@@ -970,9 +970,10 @@ public class FMRadio extends Activity
String action = data.getAction(); String action = data.getAction();
if (action != null) { if (action != null) {
if (action.equals(Settings.RESTORE_FACTORY_DEFAULT_ACTION)) { if (action.equals(Settings.RESTORE_FACTORY_DEFAULT_ACTION)) {
disableRadio();
RestoreDefaults(); RestoreDefaults();
enableRadioOnOffUI(); FmSharedPreferences.setTunedFrequency(FmSharedPreferences.DEFAULT_NO_FREQUENCY);
tuneRadio(FmSharedPreferences.DEFAULT_NO_FREQUENCY); enableRadio();
FmSharedPreferences.addStation("", FmSharedPreferences.DEFAULT_NO_FREQUENCY, 0); FmSharedPreferences.addStation("", FmSharedPreferences.DEFAULT_NO_FREQUENCY, 0);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment