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

Commit 55399837 authored by Yue Liang's avatar Yue Liang Committed by Gerrit - the friendly Code Review server
Browse files

Fix no pop-up to notify user install sim card for usb tethering

Rootcause:
If user hasn't install sim card before use usb tethering, need
to pop-up a notify dialog.

Solution:
Check sim card status while start usb tethering, if false pop-up
notify.

Change-Id: I51366ef920056991a650528f33d7f7bbbed56235
CRs-fixed: 1064551
parent 574415db
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -712,7 +712,9 @@ public class TetherSettings extends RestrictedSettingsFragment
    @Override
    public boolean onPreferenceTreeClick(Preference preference) {
        if (preference == mUsbTether) {
            if (mUsbTether.isChecked() && mUsbEnable) {
            if (showNoSimCardDialog(getActivity())) {
                ((SwitchPreference) preference).setChecked(false);
            } else if (mUsbTether.isChecked() && mUsbEnable) {
                //save the current wifi status for restore
                mIsWifiEnabled = mWifiStatusManager.isWifiEnabled();