Make the SwitchBar appear immediately
- change the way the SwitchBar is shown and hidden - save its state - remove the delay transition code Change-Id: I07260430e6709b42517ca011f6d3c3446a626731
This commit is contained in:
@@ -404,6 +404,15 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
setHasOptionsMenu(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
|
||||
if (mWifiEnabler != null) {
|
||||
mWifiEnabler.teardownSwitchBar();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
@@ -414,6 +423,7 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
|
||||
mSwitchBar = activity.getSwitchBar();
|
||||
mWifiEnabler = new WifiEnabler(activity, mSwitchBar);
|
||||
mWifiEnabler.setupSwitchBar();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user