am c501efb0: am b28cfb20: am 7f397ef5: am a205445b: am 3b04714b: Merge "Fixed a Settings crash when exiting Wi-Fi Settings." into lmp-dev

* commit 'c501efb09a0486f49e3c1b54967be7ca638c75a2':
  Fixed a Settings crash when exiting Wi-Fi Settings.
This commit is contained in:
PauloftheWest
2014-09-23 19:06:44 +00:00
committed by Android Git Automerger

View File

@@ -105,8 +105,6 @@ public class WifiEnabler implements SwitchBar.OnSwitchChangeListener {
mListeningToOnSwitchChange = true;
}
mSwitchBar.show();
mContext.registerReceiver(mReceiver, mIntentFilter);
}
public void teardownSwitchBar() {
@@ -115,8 +113,6 @@ public class WifiEnabler implements SwitchBar.OnSwitchChangeListener {
mListeningToOnSwitchChange = false;
}
mSwitchBar.hide();
mContext.unregisterReceiver(mReceiver);
}
public void resume(Context context) {