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

Commit 6b8de713 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Update settings from API cleanup

Bug: 5247957
Change-Id: Iba77318972b58f4fe250b9adfe83937c9cce7ef3
parent 66892002
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -64,21 +64,21 @@ public class WifiP2pDialog extends AlertDialog implements AdapterView.OnItemSele
    public WifiP2pConfig getConfig() {
        WifiP2pConfig config = new WifiP2pConfig();
        config.deviceAddress = mDeviceAddress.getText().toString();
        config.wpsConfig = new Wps();
        config.wps = new Wps();
        switch (mWpsSetupIndex) {
            case WPS_PBC:
                config.wpsConfig.setup = Setup.PBC;
                config.wps.setup = Setup.PBC;
                break;
            case WPS_KEYPAD:
                config.wpsConfig.setup = Setup.KEYPAD;
                config.wpsConfig.pin = ((TextView) mView.findViewById(R.id.wps_pin)).
                config.wps.setup = Setup.KEYPAD;
                config.wps.pin = ((TextView) mView.findViewById(R.id.wps_pin)).
                        getText().toString();
                break;
            case WPS_DISPLAY:
                config.wpsConfig.setup = Setup.DISPLAY;
                config.wps.setup = Setup.DISPLAY;
                break;
            default:
                config.wpsConfig.setup = Setup.PBC;
                config.wps.setup = Setup.PBC;
                break;
        }
        return config;