Merge "Update WifiP2pManager API use"
This commit is contained in:
committed by
Android (Google) Code Review
commit
06285deb66
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user