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

Commit 3d05e3c2 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Update WifiP2pManager API use

Bug: 5002384
Change-Id: I6fb3564482061783429b433105ae5f2fa1cfafcc
parent d664985e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -82,9 +82,6 @@ public class WifiP2pDialog extends AlertDialog implements AdapterView.OnItemSele
                config.wpsConfig.setup = Setup.PBC;
                break;
        }
        if (mDevice.isGroupOwner()) {
            config.joinExistingGroup = true;
        }
        return config;
    }

+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ public class WifiP2pSettings extends SettingsPreferenceFragment {
            public void onClick(DialogInterface dialog, int which) {
                if (which == DialogInterface.BUTTON_POSITIVE) {
                    if (mWifiP2pManager != null) {
                        mWifiP2pManager.disconnect(mChannel);
                        mWifiP2pManager.removeGroup(mChannel);
                    }
                }
            }