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

Commit c0af9435 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Move refreshCachedActiveSubscriptionInfoList to correct place.

Earlier it was called when the underlying that it uses was not
ready.

Test: manual
Bug: 129708064
Change-Id: Id0b84649895309c346255a4626d3c93c2b490696
parent 06c62371
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1091,9 +1091,6 @@ public class SubscriptionController extends ISub.Stub {
                        if (value.size() > 0) {
                            resolver.update(SubscriptionManager.getUriForSubscriptionId(subId),
                                    value, null, null);

                            // Refresh the Cache of Active Subscription Info List
                            refreshCachedActiveSubscriptionInfoList();
                        }

                        if (DBG) logdl("[addSubInfoRecord] Record already exists");
@@ -1176,8 +1173,11 @@ public class SubscriptionController extends ISub.Stub {
                }
            }

            if (isSubscriptionForRemoteSim(subscriptionType)) {
            // Refresh the Cache of Active Subscription Info List. This should be done after
            // updating sSlotIndexToSubIds which is done through addToSubIdList() above.
            refreshCachedActiveSubscriptionInfoList();

            if (isSubscriptionForRemoteSim(subscriptionType)) {
                notifySubscriptionInfoChanged();
            } else {  // Handle Local SIM devices
                // Set Display name after sub id is set above so as to get valid simCarrierName