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

Commit e964d571 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Remove device name and display debug setting

Device name in WifiP2pConfig is going away

Bug: 5247957
Change-Id: Ib6ada8420ed8e7fbfcab85eee5f1665e33e8f024
parent 3a79bad4
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ 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;
    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 int REQUEST_CODE_EXIT_ECM = 1;
@@ -143,14 +143,14 @@ public class WirelessSettings extends SettingsPreferenceFragment {

        if (!p2p.isP2pSupported()) {
            getPreferenceScreen().removePreference(wifiP2p);
            getPreferenceScreen().removePreference(findPreference(KEY_WIFI_P2P_SETTINGS));
        } else {
            mWifiP2pEnabler = new WifiP2pEnabler(activity, wifiP2p);
        }

            //Settings is used for debug alone
        if (!WIFI_P2P_DEBUG) {
            if (WIFI_P2P_DEBUG == 0) {
                getPreferenceScreen().removePreference(findPreference(KEY_WIFI_P2P_SETTINGS));
            }
        }

        // Enable Proxy selector settings if allowed.
        Preference mGlobalProxy = findPreference(KEY_PROXY_SETTINGS);
+0 −1
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ public class WifiP2pDialog extends AlertDialog implements AdapterView.OnItemSele
    public WifiP2pConfig getConfig() {
        WifiP2pConfig config = new WifiP2pConfig();
        config.deviceAddress = mDeviceAddress.getText().toString();
        config.deviceName = mDeviceName.getText().toString();
        config.wpsConfig = new WpsConfiguration();
        switch (mWpsSetupIndex) {
            case WPS_PBC: