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

Commit a777312e authored by Sangyun Yun's avatar Sangyun Yun Committed by Android (Google) Code Review
Browse files

Merge "Reload allowed networks from db after restore content." into main

parents 85c80c08 6534632e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1565,6 +1565,10 @@ public class SubscriptionManagerService extends ISub.Stub {
                            SubscriptionManager.RESTORE_SIM_SPECIFIC_SETTINGS_DATABASE_UPDATED)) {
                        logl("Sim specific settings changed the database.");
                        mSubscriptionDatabaseManager.reloadDatabaseSync();
                        if (mFeatureFlags.backupAndRestoreForEnable2g()) {
                            PhoneFactory.getPhone(phoneId)
                                    .loadAllowedNetworksFromSubscriptionDatabase();
                        }
                    }
                }

@@ -4247,6 +4251,10 @@ public class SubscriptionManagerService extends ISub.Stub {
                    SubscriptionManager.RESTORE_SIM_SPECIFIC_SETTINGS_DATABASE_UPDATED)) {
                logl("Sim specific settings changed the database.");
                mSubscriptionDatabaseManager.reloadDatabaseSync();
                if (mFeatureFlags.backupAndRestoreForEnable2g()) {
                    Arrays.stream(PhoneFactory.getPhones())
                            .forEach(Phone::loadAllowedNetworksFromSubscriptionDatabase);
                }
            }
        } finally {
            Binder.restoreCallingIdentity(token);