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

Commit e6070311 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by android-build-merger
Browse files

Merge "Fix issue of CS restriction notification incorrectly disappearing" am:...

Merge "Fix issue of CS restriction notification incorrectly disappearing" am: 6b1cdff0 am: d0b462f3 am: 75e56271
am: 9d302618

Change-Id: Ie9134dd69d1e2571babaea3fa38969f7ad61f30c
parents e41a0a98 9d302618
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -83,6 +83,10 @@ public class RestrictedState {
        return mCsNormalRestricted && mCsEmergencyRestricted;
    }

    public boolean isAnyCsRestricted() {
        return mCsNormalRestricted || mCsEmergencyRestricted;
    }

    @Override
    public boolean equals (Object o) {
        RestrictedState s;
+3 −3
Original line number Diff line number Diff line
@@ -3709,7 +3709,7 @@ public class ServiceStateTracker extends Handler {
             * and we only need to notify when state is changed.
             */
            if (mRestrictedState.isCsRestricted()) {
                if (!newRs.isCsRestricted()) {
                if (!newRs.isAnyCsRestricted()) {
                    // remove all restriction
                    setNotification(CS_DISABLED);
                } else if (!newRs.isCsNormalRestricted()) {
@@ -3721,7 +3721,7 @@ public class ServiceStateTracker extends Handler {
                }
            } else if (mRestrictedState.isCsEmergencyRestricted() &&
                    !mRestrictedState.isCsNormalRestricted()) {
                if (!newRs.isCsRestricted()) {
                if (!newRs.isAnyCsRestricted()) {
                    // remove all restriction
                    setNotification(CS_DISABLED);
                } else if (newRs.isCsRestricted()) {
@@ -3733,7 +3733,7 @@ public class ServiceStateTracker extends Handler {
                }
            } else if (!mRestrictedState.isCsEmergencyRestricted() &&
                    mRestrictedState.isCsNormalRestricted()) {
                if (!newRs.isCsRestricted()) {
                if (!newRs.isAnyCsRestricted()) {
                    // remove all restriction
                    setNotification(CS_DISABLED);
                } else if (newRs.isCsRestricted()) {