Merge "Fix generation of pin for WPS on screen rotation." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6d9500d04c
@@ -179,6 +179,11 @@ public class WpsDialog extends AlertDialog {
|
|||||||
mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
|
mWifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE);
|
||||||
|
|
||||||
setView(mView);
|
setView(mView);
|
||||||
|
if (savedInstanceState == null) {
|
||||||
|
WpsInfo wpsConfig = new WpsInfo();
|
||||||
|
wpsConfig.setup = mWpsSetup;
|
||||||
|
mWifiManager.startWps(wpsConfig, mWpsListener);
|
||||||
|
}
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -203,9 +208,6 @@ public class WpsDialog extends AlertDialog {
|
|||||||
|
|
||||||
mContext.registerReceiver(mReceiver, mFilter);
|
mContext.registerReceiver(mReceiver, mFilter);
|
||||||
|
|
||||||
WpsInfo wpsConfig = new WpsInfo();
|
|
||||||
wpsConfig.setup = mWpsSetup;
|
|
||||||
mWifiManager.startWps(wpsConfig, mWpsListener);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user