Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12291cec authored by Sanket Padawe's avatar Sanket Padawe
Browse files

Fix generation of pin for WPS on screen rotation.

Bug: 21170548
Change-Id: Ib670214fec2776d48739c42a41b854c50be2740d
parent 7186a47e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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