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

Commit 756fe297 authored by Hui Wang's avatar Hui Wang Committed by Android (Google) Code Review
Browse files

Merge "Do not suspend emergency pdn"

parents 9ce0297a 7b8d0d05
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -437,6 +437,11 @@ public class DataConnection extends StateMachine {
        // Data can only be (temporarily) suspended while data is in active state
        if (getCurrentState() != mActiveState) return false;

        // never set suspend for emergency apn
        if (mApnSetting != null && mApnSetting.isEmergencyApn()) {
            return false;
        }

        // if we are not in-service change to SUSPENDED
        final ServiceStateTracker sst = mPhone.getServiceStateTracker();
        if (sst.getCurrentDataConnectionState() != ServiceState.STATE_IN_SERVICE) {