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

Commit 49f192aa authored by Tian Ru's avatar Tian Ru Committed by Gerrit - the friendly Code Review server
Browse files

Settings: Open WiFi network when pull out the USB line.

Modify one config value position, and will not effects baseline code.
When open USB Tethering, the WiFi network will be closed.
When pull out USB line, the WiFi network will be reopen automatic.

Change-Id: I34d3ceda1fb49a73ee91850db451381d9feb5ce4
CRs-Fixed: 1070552
parent d458a697
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -72,8 +72,6 @@

    <bool name="config_regional_usb_tethering_quick_start_enable">false</bool>
    <bool name="config_regional_hotspot_tether_help_enable">false</bool>
    <!-- Config to enable/disable the USB line-->
    <bool name="config_usb_line_enable">false</bool>
    <bool name="config_show_dialog_open_wifi_when_tethering_open">false</bool>
    <bool name="config_regional_account_check_dialog_enable">false</bool>
    <!-- Tethering & Mobile HotSpots display summary on Tmoblie -->
+5 −4
Original line number Diff line number Diff line
@@ -714,10 +714,11 @@ public class TetherSettings extends RestrictedSettingsFragment
        if (preference == mUsbTether) {
            if (showNoSimCardDialog(getActivity())) {
                ((SwitchPreference) preference).setChecked(false);
            } else if (mUsbTether.isChecked() && mUsbEnable) {
            } else if (mUsbTether.isChecked()) {
                if (mUsbEnable) {
                    //save the current wifi status for restore
                    mIsWifiEnabled = mWifiStatusManager.isWifiEnabled();

                }
                if (isFirstUseUSBTethering(getActivity())) {
                    showFirstUseUSBTetheringDialog(getActivity());
                }