Add p2p settings only in debug mode
Bug: 5002384 Change-Id: I12d691ea5b2c820c33ef8735d997a0c04b636aa7
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user