OSDN Git Service

Carrier text handle sim removal
authorJason Monk <jmonk@google.com>
Fri, 9 Jan 2015 21:07:14 +0000 (16:07 -0500)
committerJason Monk <jmonk@google.com>
Fri, 9 Jan 2015 21:07:14 +0000 (16:07 -0500)
Have KeyguardUpdateMonitor send the onRefreshCarrierInfo when the
subscription info changes, regardless of whether there are any
subscriptions (because there might be no sims).

Bug: 18752587
Change-Id: I8976c76aae9e3e633b6adace48dccb1e940dbc18

packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java

index c8cfe31..84bacc3 100644 (file)
@@ -284,10 +284,15 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
                 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get();
                 if (cb != null) {
                     cb.onSimStateChanged(data.subId, data.slotId, data.simState);
-                    cb.onRefreshCarrierInfo();
                 }
             }
         }
+        for (int j = 0; j < mCallbacks.size(); j++) {
+            KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get();
+            if (cb != null) {
+                cb.onRefreshCarrierInfo();
+            }
+        }
     }
 
     /** @return List of SubscriptionInfo records, maybe empty but never null */