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

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

Merge cherrypicks of [7817250, 7817416] into qt-release

Change-Id: Ief5c7a308482de0128bd738d2f15dd44d3205f9a
parents 768e99b0 5408a98d
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.