Merge "Update WifiP2pManager API use"

This commit is contained in:
Irfan Sheriff
2011-08-25 11:50:46 -07:00
committed by Android (Google) Code Review
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;
break;
}
if (mDevice.isGroupOwner()) {
config.joinExistingGroup = true;
}
return config;
}

View File

@@ -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);
}
}
}