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

Commit 7685407b authored by Arun kumar Voddu's avatar Arun kumar Voddu Committed by Gerrit Code Review
Browse files

Merge "Introduced Thread safety protected when accessing getAllUiccCardInfos"

parents 32f2c07a 26bb0b83
Loading
Loading
Loading
Loading
+45 −43
Original line number Diff line number Diff line
@@ -1216,6 +1216,7 @@ public class UiccController extends Handler {
     * Returns the UiccCardInfo of all currently inserted UICCs and embedded eUICCs.
     */
    public ArrayList<UiccCardInfo> getAllUiccCardInfos() {
        synchronized (mLock) {
            ArrayList<UiccCardInfo> infos = new ArrayList<>();
            for (int slotIndex = 0; slotIndex < mUiccSlots.length; slotIndex++) {
                final UiccSlot slot = mUiccSlots[slotIndex];
@@ -1266,6 +1267,7 @@ public class UiccController extends Handler {
            }
            return infos;
        }
    }

    /**
     * Get the card ID of the default eUICC.