From 3d05e3c2bec7539c5f5737167c7548093369ec81 Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Wed, 24 Aug 2011 14:19:29 -0700 Subject: Update WifiP2pManager API use Bug: 5002384 Change-Id: I6fb3564482061783429b433105ae5f2fa1cfafcc --- src/com/android/settings/wifi/p2p/WifiP2pDialog.java | 3 --- src/com/android/settings/wifi/p2p/WifiP2pSettings.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/com/android/settings/wifi/p2p/WifiP2pDialog.java b/src/com/android/settings/wifi/p2p/WifiP2pDialog.java index 380fa13..9462129 100644 --- a/src/com/android/settings/wifi/p2p/WifiP2pDialog.java +++ b/src/com/android/settings/wifi/p2p/WifiP2pDialog.java @@ -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; } diff --git a/src/com/android/settings/wifi/p2p/WifiP2pSettings.java b/src/com/android/settings/wifi/p2p/WifiP2pSettings.java index fe6d392..0656689 100644 --- a/src/com/android/settings/wifi/p2p/WifiP2pSettings.java +++ b/src/com/android/settings/wifi/p2p/WifiP2pSettings.java @@ -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); } } } -- cgit v1.1