am 3b04714b
: Merge "Fixed a Settings crash when exiting Wi-Fi Settings." into lmp-dev
* commit '3b04714bdf970eaad831edb3531253c87aced2bc': Fixed a Settings crash when exiting Wi-Fi Settings.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user