Merge "Fix MUT cannot connect to AP by WPS after rotating MUT" am: 2503ea04fb
am: 220e085953
am: 4ccf08c6d4
am: 2277572041
Change-Id: I5b881b39e046fc2b8ff2137a693cb849281131b8
This commit is contained in:
@@ -150,6 +150,9 @@ public class WpsDialog extends AlertDialog {
|
|||||||
DialogState dialogState = mDialogState.valueOf(savedInstanceState.getString(DIALOG_STATE));
|
DialogState dialogState = mDialogState.valueOf(savedInstanceState.getString(DIALOG_STATE));
|
||||||
String msg = savedInstanceState.getString(DIALOG_MSG_STRING);
|
String msg = savedInstanceState.getString(DIALOG_MSG_STRING);
|
||||||
updateDialog(dialogState, msg);
|
updateDialog(dialogState, msg);
|
||||||
|
if (dialogState == DialogState.WPS_START) {
|
||||||
|
startWps();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -180,9 +183,7 @@ public class WpsDialog extends AlertDialog {
|
|||||||
|
|
||||||
setView(mView);
|
setView(mView);
|
||||||
if (savedInstanceState == null) {
|
if (savedInstanceState == null) {
|
||||||
WpsInfo wpsConfig = new WpsInfo();
|
startWps();
|
||||||
wpsConfig.setup = mWpsSetup;
|
|
||||||
mWifiManager.startWps(wpsConfig, mWpsListener);
|
|
||||||
}
|
}
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
}
|
||||||
@@ -276,4 +277,9 @@ public class WpsDialog extends AlertDialog {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void startWps() {
|
||||||
|
WpsInfo wpsConfig = new WpsInfo();
|
||||||
|
wpsConfig.setup = mWpsSetup;
|
||||||
|
mWifiManager.startWps(wpsConfig, mWpsListener);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user