diff options
author | Adrian Roos <roosa@google.com> | 2014-06-10 22:39:15 +0200 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2014-06-10 22:39:15 +0200 |
commit | c42d33004dace5155b36a5c2e9468dbbe343af66 (patch) | |
tree | ed2a71740e982ccd19a3d281cfe14676c276e274 /packages/Keyguard/src/com | |
parent | 965bba34341470fbb8541a4ade7b772a435ec3f2 (diff) | |
download | frameworks_base-c42d33004dace5155b36a5c2e9468dbbe343af66.zip frameworks_base-c42d33004dace5155b36a5c2e9468dbbe343af66.tar.gz frameworks_base-c42d33004dace5155b36a5c2e9468dbbe343af66.tar.bz2 |
Update security method after switching user
Bug: 15445037
Change-Id: If296dd3ab6510c335aba7ffdce5cdd923ceada6b
Diffstat (limited to 'packages/Keyguard/src/com')
-rw-r--r-- | packages/Keyguard/src/com/android/keyguard/KeyguardSimpleHostView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSimpleHostView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSimpleHostView.java index 3f6ced6..bc159cb 100644 --- a/packages/Keyguard/src/com/android/keyguard/KeyguardSimpleHostView.java +++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSimpleHostView.java @@ -25,6 +25,7 @@ public class KeyguardSimpleHostView extends KeyguardViewBase { public KeyguardSimpleHostView(Context context, AttributeSet attrs) { super(context, attrs); + KeyguardUpdateMonitor.getInstance(context).registerCallback(mUpdateCallback); } @Override @@ -62,4 +63,10 @@ public class KeyguardSimpleHostView extends KeyguardViewBase { // TODO Auto-generated method stub } + private KeyguardUpdateMonitorCallback mUpdateCallback = new KeyguardUpdateMonitorCallback() { + @Override + public void onUserSwitchComplete(int userId) { + getSecurityContainer().showPrimarySecurityScreen(false /* turning off */); + } + }; } |