Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05e01be5 authored by repo sync's avatar repo sync
Browse files

Add p2p settings only in debug mode

Bug: 5002384
Change-Id: I12d691ea5b2c820c33ef8735d997a0c04b636aa7
parent 40515882
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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));
        }