From 1610a74a26763046c147b2cf5cda7d84a62b95ff Mon Sep 17 00:00:00 2001 From: Irfan Sheriff Date: Wed, 31 Aug 2011 11:51:17 -0700 Subject: [PATCH] Expose wifi p2p toggle switch to user We will not show the Wifi p2p settings to user but the turn on/off capability is exposed to the user and applications will be expected to let user turn on and turn off p2p at launch. Remove the compound button integration from the settings page. Bug: 5242230 Change-Id: I54ec307304256b051e85201b8bb829d0e5544bfc --- res/xml/wireless_settings.xml | 5 ++ .../android/settings/WirelessSettings.java | 23 +++++++++ .../settings/wifi/p2p/WifiP2pEnabler.java | 49 +++++++------------ .../settings/wifi/p2p/WifiP2pSettings.java | 27 ---------- 4 files changed, 47 insertions(+), 57 deletions(-) diff --git a/res/xml/wireless_settings.xml b/res/xml/wireless_settings.xml index 81929d0beeb..1e718631729 100644 --- a/res/xml/wireless_settings.xml +++ b/res/xml/wireless_settings.xml @@ -45,6 +45,11 @@ android:summary="@string/ndef_push_settings_summary" > + +