diff options
author | Adrian Roos <roosa@google.com> | 2014-05-21 14:04:42 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-21 14:04:43 +0000 |
commit | 38dfba03d5c7dd6069a9460729fbce4d317f25a2 (patch) | |
tree | 44ec5403fbec1b52232c096845202bf81ff5ef7b /packages/Keyguard | |
parent | eac222a002797646b7a8a2d14828c44b27535000 (diff) | |
parent | 2fe592d49b20826f998e26cbc63ed0c0deff46c1 (diff) | |
download | frameworks_base-38dfba03d5c7dd6069a9460729fbce4d317f25a2.zip frameworks_base-38dfba03d5c7dd6069a9460729fbce4d317f25a2.tar.gz frameworks_base-38dfba03d5c7dd6069a9460729fbce4d317f25a2.tar.bz2 |
Merge "Add trust indicator to keyguard"
Diffstat (limited to 'packages/Keyguard')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java | 7 | ||||
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java index 0bcd916..fef971c 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitor.java @@ -213,6 +213,13 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { @Override public void onTrustChanged(boolean enabled, int userId) { mUserHasTrust.put(userId, enabled); + + for (int i = 0; i < mCallbacks.size(); i++) { + KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); + if (cb != null) { + cb.onTrustChanged(userId); + } + } } private boolean isTrustDisabled(int userId) { diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java index 76206f7..bcdf18f 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardUpdateMonitorCallback.java @@ -179,4 +179,9 @@ public class KeyguardUpdateMonitorCallback { * {@link WindowManagerPolicy#OFF_BECAUSE_OF_TIMEOUT}. */ public void onScreenTurnedOff(int why) { } + + /** + * Called when trust changes for a user. + */ + public void onTrustChanged(int userId) { } } |