summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Richard Chou <richardchou@google.com> 2018-04-23 03:40:05 +0000
committer Richard Chou <richardchou@google.com> 2018-04-24 04:05:15 +0000
commit700dd5c65995b724db11b96253ea840cdaa17cb8 (patch)
tree87742945381394a71110171d73ade8fb7ff7c99a
parent3e7c7ca8e4faed7d0377258ec1fdd43e07083316 (diff)
Revert "Reset SIM state if the subscription/slot is no longer active."
This reverts commit 3e7c7ca8e4faed7d0377258ec1fdd43e07083316. Reason for revert: This commit will cause side effects with Project Fi. It'd be too risky to solve this issue at the current stage of Android P. Revert first. Bug: 77579824 Bug: 77702165 Change-Id: I404cd5b4413ba95a26aabb5da55c565a37f06e7e
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java7
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);
}