diff options
| author | 2018-04-25 17:12:20 +0000 | |
|---|---|---|
| committer | 2018-04-25 17:12:20 +0000 | |
| commit | d60e8836f35e3378dcf1d072f5f1f9e4acb4e947 (patch) | |
| tree | 47ae3a0c1f9a63af6ddc877b9cd8f92ac1120bb6 | |
| parent | 6f79bd00195564793bad1c51f1411632849eee5c (diff) | |
| parent | 700dd5c65995b724db11b96253ea840cdaa17cb8 (diff) | |
Merge "Revert "Reset SIM state if the subscription/slot is no longer active."" into pi-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java index c826aaaac749..1bab36be8cd8 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -1850,7 +1850,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { final TelephonyManager tele = TelephonyManager.from(mContext); ArrayList<Integer> changedSubscriptionIds = new ArrayList<>(); HashSet<Integer> activeSubIds = new HashSet<>(); - HashSet<Integer> activeSlotIds = new HashSet<>(); for (SubscriptionInfo info : activeSubscriptionInfos) { int subId = info.getSubscriptionId(); @@ -1879,15 +1878,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } activeSubIds.add(subId); - activeSlotIds.add(slotId); } for (SimData data : mSimDatas.values()) { - if (!activeSubIds.contains(data.subId) - && !activeSlotIds.contains(data.slotId) - && data.simState != State.ABSENT) { + if (!activeSubIds.contains(data.subId) && data.simState != State.ABSENT) { // for the inactive subscriptions, reset state to ABSENT - if (DEBUG_SIM_STATES) Log.d(TAG, "reset state to ABSENT for subId:" + data.subId); data.simState = State.ABSENT; changedSubscriptionIds.add(data.subId); } |