diff options
Diffstat (limited to 'fmapp2/src/com')
-rw-r--r-- | fmapp2/src/com/caf/fmradio/FMRadio.java | 5 |
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); } } |