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

Commit 60b161f5 authored by Brad Ebinger's avatar Brad Ebinger Committed by Automerger Merge Worker
Browse files

Merge "Stop duplicate RADIO_POWER indcation when power off delay disabled" am:...

Merge "Stop duplicate RADIO_POWER indcation when power off delay disabled" am: 42de0a8b am: 48c80741

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1844464

Change-Id: I8d626d0f0d926eee02444de266d56ccc546043af
parents de47dba3 48c80741
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -288,7 +288,8 @@ public class ServiceStateTracker extends Handler {
    public    static final int EVENT_ICC_CHANGED                       = 42;
    protected static final int EVENT_GET_CELL_INFO_LIST                = 43;
    protected static final int EVENT_UNSOL_CELL_INFO_LIST              = 44;
    // Only sent if the IMS state is moving from true -> false
    // Only sent if the IMS state is moving from true -> false and power off delay for IMS
    // registration feature is enabled.
    protected static final int EVENT_CHANGE_IMS_STATE                  = 45;
    protected static final int EVENT_IMS_STATE_CHANGED                 = 46;
    protected static final int EVENT_IMS_STATE_DONE                    = 47;
@@ -3368,7 +3369,14 @@ public class ServiceStateTracker extends Handler {

        if (mImsRegistrationOnOff && !registered) {
            // moving to deregistered, only send this event if we need to re-evaluate
            if (getRadioPowerOffDelayTimeoutForImsRegistration() > 0) {
                // only send this event if the power off delay for IMS deregistration feature is
                // enabled.
                sendMessage(obtainMessage(EVENT_CHANGE_IMS_STATE));
            } else {
                log("setImsRegistrationState: EVENT_CHANGE_IMS_STATE not sent because power off "
                        + "delay for IMS deregistration is not enabled.");
            }
        }
        mImsRegistrationOnOff = registered;
    }