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

* commit '7f397ef5cc28f21680d0ed2872aeda14c70c6623':
  Fixed a Settings crash when exiting Wi-Fi Settings.
This commit is contained in:
PauloftheWest
2014-09-23 13:27:37 +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) {