am 86dbdff1: am 6d9500d0: Merge "Fix generation of pin for WPS on screen rotation." into mnc-dev

* commit '86dbdff1fa203b415929fb6c65fa431d56e7eaa8':
  Fix generation of pin for WPS on screen rotation.
This commit is contained in:
Sanket Padawe
2015-05-26 19:09:29 +00:00
committed by Android Git Automerger

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