Loading packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +7 −2 Original line number Diff line number Diff line Loading @@ -1904,14 +1904,19 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { + slotId + ", state=" + state +")"); } boolean becameAbsent = false; if (!SubscriptionManager.isValidSubscriptionId(subId)) { Log.w(TAG, "invalid subId in handleSimStateChange()"); /* Only handle No SIM(ABSENT) due to handleServiceStateChange() handle other case */ if (state == State.ABSENT) { updateTelephonyCapable(true); } // Even though the subscription is not valid anymore, we need to notify that the // SIM card was removed so we can update the UI. becameAbsent = true; } else { return; } } SimData data = mSimDatas.get(subId); final boolean changed; Loading @@ -1925,7 +1930,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { data.subId = subId; data.slotId = slotId; } if (changed && state != State.UNKNOWN) { if ((changed || becameAbsent) && state != State.UNKNOWN) { for (int i = 0; i < mCallbacks.size(); i++) { KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); if (cb != null) { Loading packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +3 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,9 @@ public class KeyguardViewMediator extends SystemUI { // MVNO SIMs can become transiently NOT_READY when switching networks, // so we should only lock when they are ABSENT. onSimAbsentLocked(); if (simWasLocked) { resetStateLocked(); } } } break; Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +7 −2 Original line number Diff line number Diff line Loading @@ -1904,14 +1904,19 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { + slotId + ", state=" + state +")"); } boolean becameAbsent = false; if (!SubscriptionManager.isValidSubscriptionId(subId)) { Log.w(TAG, "invalid subId in handleSimStateChange()"); /* Only handle No SIM(ABSENT) due to handleServiceStateChange() handle other case */ if (state == State.ABSENT) { updateTelephonyCapable(true); } // Even though the subscription is not valid anymore, we need to notify that the // SIM card was removed so we can update the UI. becameAbsent = true; } else { return; } } SimData data = mSimDatas.get(subId); final boolean changed; Loading @@ -1925,7 +1930,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { data.subId = subId; data.slotId = slotId; } if (changed && state != State.UNKNOWN) { if ((changed || becameAbsent) && state != State.UNKNOWN) { for (int i = 0; i < mCallbacks.size(); i++) { KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); if (cb != null) { Loading
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +3 −0 Original line number Diff line number Diff line Loading @@ -488,6 +488,9 @@ public class KeyguardViewMediator extends SystemUI { // MVNO SIMs can become transiently NOT_READY when switching networks, // so we should only lock when they are ABSENT. onSimAbsentLocked(); if (simWasLocked) { resetStateLocked(); } } } break; Loading