diff options
author | repo sync <isheriff@google.com> | 2011-08-16 21:39:55 -0700 |
---|---|---|
committer | repo sync <isheriff@google.com> | 2011-08-16 22:05:24 -0700 |
commit | 05e01be5111da41965d045e21f1b731bac536ae2 (patch) | |
tree | 089486d683a3eea4e82d019565c1718764541704 /src/com/android/settings/WirelessSettings.java | |
parent | 40515882cd41fe1a94672f68e62c6a6b21ed8aa6 (diff) | |
download | packages_apps_Settings-05e01be5111da41965d045e21f1b731bac536ae2.tar.gz packages_apps_Settings-05e01be5111da41965d045e21f1b731bac536ae2.tar.bz2 packages_apps_Settings-05e01be5111da41965d045e21f1b731bac536ae2.zip |
Add p2p settings only in debug mode
Bug: 5002384
Change-Id: I12d691ea5b2c820c33ef8735d997a0c04b636aa7
Diffstat (limited to 'src/com/android/settings/WirelessSettings.java')
-rw-r--r-- | src/com/android/settings/WirelessSettings.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/WirelessSettings.java b/src/com/android/settings/WirelessSettings.java index 636799d9e..55b395ade 100644 --- a/src/com/android/settings/WirelessSettings.java +++ b/src/com/android/settings/WirelessSettings.java @@ -48,6 +48,8 @@ public class WirelessSettings extends SettingsPreferenceFragment { private static final String KEY_PROXY_SETTINGS = "proxy_settings"; private static final String KEY_MOBILE_NETWORK_SETTINGS = "mobile_network_settings"; + private static final Boolean WIFI_P2P_DEBUG = false; + public static final String EXIT_ECM_RESULT = "exit_ecm_result"; public static final int REQUEST_CODE_EXIT_ECM = 1; @@ -131,8 +133,7 @@ public class WirelessSettings extends SettingsPreferenceFragment { getPreferenceScreen().removePreference(findPreference(KEY_MOBILE_NETWORK_SETTINGS)); } - WifiP2pManager wifiP2p = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); - if (!wifiP2p.isP2pSupported()) { + if (!WIFI_P2P_DEBUG) { getPreferenceScreen().removePreference(findPreference(KEY_WIFI_P2P_SETTINGS)); } |