Merge "Fix generation of pin for WPS on screen rotation." into mnc-dev

This commit is contained in:
Sanket Padawe
2015-05-26 18:46:04 +00:00
committed by Android (Google) Code Review

View File

@@ -179,6 +179,11 @@ public class WpsDialog extends AlertDialog {
mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
setView(mView);
if (savedInstanceState == null) {
WpsInfo wpsConfig = new WpsInfo();
wpsConfig.setup = mWpsSetup;
mWifiManager.startWps(wpsConfig, mWpsListener);
}
super.onCreate(savedInstanceState);
}
@@ -203,9 +208,6 @@ public class WpsDialog extends AlertDialog {
mContext.registerReceiver(mReceiver, mFilter);
WpsInfo wpsConfig = new WpsInfo();
wpsConfig.setup = mWpsSetup;
mWifiManager.startWps(wpsConfig, mWpsListener);
}
@Override