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

Commit 06e130a1 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Merge cherrypicks of [7818278, 7817454] into qt-c2f2-release

Change-Id: I3d2f0ea8c62df645973bbe706e7e02cc0c2d1c56
parents 526ab162 bd5e18e2
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -699,6 +699,13 @@ public class SubscriptionInfoUpdater extends Handler {
    @VisibleForTesting(visibility = VisibleForTesting.Visibility.PRIVATE)
    public void updateEmbeddedSubscriptions(List<Integer> cardIds,
            @Nullable UpdateEmbeddedSubsCallback callback) {
        // Do nothing if eUICCs are disabled. (Previous entries may remain in the cache, but they
        // are filtered out of list calls as long as EuiccManager.isEnabled returns false).
        if (!mEuiccManager.isEnabled()) {
            callback.run(false /* hasChanges */);
            return;
        }

        mBackgroundHandler.post(() -> {
            List<GetEuiccProfileInfoListResult> results = new ArrayList<>();
            for (int cardId : cardIds) {
@@ -735,11 +742,6 @@ public class SubscriptionInfoUpdater extends Handler {
     */
    private boolean updateEmbeddedSubscriptionsCache(GetEuiccProfileInfoListResult result) {
        if (DBG) logd("updateEmbeddedSubscriptionsCache");
        // Do nothing if eUICCs are disabled. (Previous entries may remain in the cache, but they
        // are filtered out of list calls as long as EuiccManager.isEnabled returns false).
        if (!mEuiccManager.isEnabled()) {
            return false;
        }

        if (result == null) {
            // IPC to the eUICC controller failed.