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

Commit 1079007c authored by repo sync's avatar repo sync Committed by Android (Google) Code Review
Browse files

Merge "Add p2p settings only in debug mode"

parents 9403d8b2 05e01be5
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));
        }