Fixed crash when changing orientation in the Add Networks dialog.
Bug: 16479540 Change-Id: Ib42977b72039f49b5d5ae688c0b0ded1094b44e2
This commit is contained in:
@@ -300,7 +300,6 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (mEdit || (mAccessPoint.getState() == null && mAccessPoint.getLevel() != -1)){
|
if (mEdit || (mAccessPoint.getState() == null && mAccessPoint.getLevel() != -1)){
|
||||||
mConfigUi.setCancelButton(res.getString(R.string.wifi_cancel));
|
mConfigUi.setCancelButton(res.getString(R.string.wifi_cancel));
|
||||||
}else{
|
}else{
|
||||||
|
@@ -345,10 +345,12 @@ public class WifiSettings extends RestrictedSettingsFragment
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (savedInstanceState != null
|
if (savedInstanceState != null) {
|
||||||
&& savedInstanceState.containsKey(SAVE_DIALOG_ACCESS_POINT_STATE)) {
|
|
||||||
mDlgEdit = savedInstanceState.getBoolean(SAVE_DIALOG_EDIT_MODE);
|
mDlgEdit = savedInstanceState.getBoolean(SAVE_DIALOG_EDIT_MODE);
|
||||||
mAccessPointSavedState = savedInstanceState.getBundle(SAVE_DIALOG_ACCESS_POINT_STATE);
|
if (savedInstanceState.containsKey(SAVE_DIALOG_ACCESS_POINT_STATE)) {
|
||||||
|
mAccessPointSavedState =
|
||||||
|
savedInstanceState.getBundle(SAVE_DIALOG_ACCESS_POINT_STATE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we're supposed to enable/disable the Next button based on our current connection
|
// if we're supposed to enable/disable the Next button based on our current connection
|
||||||
|
Reference in New Issue
Block a user