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

Commit b7df4e0b authored by Malcolm Chen's avatar Malcolm Chen Committed by Xiangyu/Malcolm Chen
Browse files

Fix bug of default data / voice / sms sub is cleared unexpectedly.

We shouldn't always clear default data / voice / sms whenever
updateSubscriptionInfoByIccId is called and not set it back after.

Bug: 123606589
Test: manual
Change-Id: I4520ec72e2db6846f8c00981a624d8e4763ae777
parent 8762d680
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1318,9 +1318,6 @@ public class SubscriptionController extends ISub.Stub {
        refreshCachedActiveSubscriptionInfoList();

        sSlotIndexToSubIds.remove(slotIndex);

        // update default subId
        clearDefaultsForInactiveSubIds();
    }

    /**
+3 −0
Original line number Diff line number Diff line
@@ -589,6 +589,9 @@ public class SubscriptionInfoUpdater extends Handler {
            }
        }

        // update default subId
        SubscriptionController.getInstance().clearDefaultsForInactiveSubIds();

        SubscriptionController.getInstance().notifySubscriptionInfoChanged();
        logd("updateSubscriptionInfoByIccId:- SubscriptionInfo update complete");
    }