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

Commit c7060fb1 authored by Sandeep Kunta's avatar Sandeep Kunta Committed by Gerrit - the friendly Code Review server
Browse files

Set active subscription properly

Unset ACTIVE bit only for a subscription which is not an active
subscription.

CRs-Fixed: 755483
Change-Id: Ie8aa357dc16057bea7c99128e3c68258d6bfdde7
parent 51764c58
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1592,7 +1592,8 @@ public final class CallsManager extends Call.ListenerBase {
                    && !phAcc.isSet(PhoneAccount.ACTIVE)) {
                changed = true;
                phAcc.setBit(PhoneAccount.ACTIVE);
            } else if (phAcc.isSet(PhoneAccount.ACTIVE)) {
            } else if (subId != null && !subId.equals(ph.getId())
                        && phAcc.isSet(PhoneAccount.ACTIVE)) {
                changed = true;
                phAcc.unSetBit(PhoneAccount.ACTIVE);
            }