Update WifiP2pManager API use

Bug: 5002384
Change-Id: I6fb3564482061783429b433105ae5f2fa1cfafcc
This commit is contained in:
Irfan Sheriff
2011-08-24 14:19:29 -07:00
parent d664985ea6
commit 3d05e3c2be
2 changed files with 1 additions and 4 deletions

View File

@@ -82,9 +82,6 @@ public class WifiP2pDialog extends AlertDialog implements AdapterView.OnItemSele
config.wpsConfig.setup = Setup.PBC; config.wpsConfig.setup = Setup.PBC;
break; break;
} }
if (mDevice.isGroupOwner()) {
config.joinExistingGroup = true;
}
return config; return config;
} }

View File

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