Remove wifidirect UI listing
Was used for testing. remove it until proper UI is added Bug: 5497909 Change-Id: Ic8bd1afbe348ede9031f2446b30a99d7efc88f7c
This commit is contained in:
@@ -51,8 +51,6 @@ public class WirelessSettings extends SettingsPreferenceFragment {
|
|||||||
private static final String KEY_PROXY_SETTINGS = "proxy_settings";
|
private static final String KEY_PROXY_SETTINGS = "proxy_settings";
|
||||||
private static final String KEY_MOBILE_NETWORK_SETTINGS = "mobile_network_settings";
|
private static final String KEY_MOBILE_NETWORK_SETTINGS = "mobile_network_settings";
|
||||||
|
|
||||||
private static final int WIFI_P2P_DEBUG = SystemProperties.getInt("ro.debuggable", 0);
|
|
||||||
|
|
||||||
public static final String EXIT_ECM_RESULT = "exit_ecm_result";
|
public static final String EXIT_ECM_RESULT = "exit_ecm_result";
|
||||||
public static final int REQUEST_CODE_EXIT_ECM = 1;
|
public static final int REQUEST_CODE_EXIT_ECM = 1;
|
||||||
|
|
||||||
@@ -144,14 +142,10 @@ public class WirelessSettings extends SettingsPreferenceFragment {
|
|||||||
|
|
||||||
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT)) {
|
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_DIRECT)) {
|
||||||
getPreferenceScreen().removePreference(wifiP2p);
|
getPreferenceScreen().removePreference(wifiP2p);
|
||||||
getPreferenceScreen().removePreference(findPreference(KEY_WIFI_P2P_SETTINGS));
|
|
||||||
} else {
|
} else {
|
||||||
mWifiP2pEnabler = new WifiP2pEnabler(activity, wifiP2p);
|
mWifiP2pEnabler = new WifiP2pEnabler(activity, wifiP2p);
|
||||||
//Settings is used for debug alone
|
}
|
||||||
if (WIFI_P2P_DEBUG == 0) {
|
|
||||||
getPreferenceScreen().removePreference(findPreference(KEY_WIFI_P2P_SETTINGS));
|
getPreferenceScreen().removePreference(findPreference(KEY_WIFI_P2P_SETTINGS));
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enable Proxy selector settings if allowed.
|
// Enable Proxy selector settings if allowed.
|
||||||
Preference mGlobalProxy = findPreference(KEY_PROXY_SETTINGS);
|
Preference mGlobalProxy = findPreference(KEY_PROXY_SETTINGS);
|
||||||
|
Reference in New Issue
Block a user