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

Commit d142983a authored by Pankaj Kanwar's avatar Pankaj Kanwar Committed by Android (Google) Code Review
Browse files

Merge "After this change, we'll show the emergency notification even in...

Merge "After this change, we'll show the emergency notification even in Airplane Mode when the user is registered for Wifi Calling." into oc-mr1-dev
parents 53639960 ebb5717e
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -79,13 +79,8 @@ public class CarrierServiceStateTracker extends Handler {
        switch (msg.what) {
            case CARRIER_EVENT_VOICE_REGISTRATION:
            case CARRIER_EVENT_DATA_REGISTRATION:
                handleConfigChanges();
                break;
            case CARRIER_EVENT_VOICE_DEREGISTRATION:
            case CARRIER_EVENT_DATA_DEREGISTRATION:
                if (isRadioOffOrAirplaneMode()) {
                    break;
                }
                handleConfigChanges();
                break;
            case NOTIFICATION_EMERGENCY_NETWORK:
@@ -317,8 +312,8 @@ public class CarrierServiceStateTracker extends Handler {
            Rlog.i(LOG_TAG, "PrefNetworkNotification: sendMessage() w/values: "
                    + "," + isPhoneStillRegistered() + "," + mDelay + "," + isGlobalMode()
                    + "," + mSST.isRadioOn());
            if (mDelay == UNINITIALIZED_DELAY_VALUE ||  isPhoneStillRegistered()
                    || isGlobalMode()) {
            if (mDelay == UNINITIALIZED_DELAY_VALUE ||  isPhoneStillRegistered() || isGlobalMode()
                    || isRadioOffOrAirplaneMode()) {
                return false;
            }
            return true;