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

Commit 61f1ce0e authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Fix bug in airplane mode.

If the phone comes up in airplane mode you and you turn it off,
you can currently end with both mobile and wifi turned on.

bug:2524413
Change-Id: I7a841c955be9038109d0b220070406a3fbd3e8e9
parent f43eab14
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -369,7 +369,11 @@ public class MobileDataStateTracker extends NetworkStateTracker {
                }
                // else fall through
            case Phone.APN_TYPE_NOT_AVAILABLE:
                // Default is always available, but may be off due to
                // AirplaneMode or E-Call or whatever..
                if (mApnType != Phone.APN_TYPE_DEFAULT) {
                    mEnabled = false;
                }
                break;
            default:
                Log.e(TAG, "Error in reconnect - unexpected response.");