Merge "Don\'t disrupt a11y state when user is unlocked." into nyc-dev am: 18e9f13b24
am: 14a9987d99
* commit '14a9987d991d5fe47ac5e2d6154bbd90fd87631a':
Don't disrupt a11y state when user is unlocked.
Change-Id: I5bea2b2da3b28667b51c8cc8aa0a416ac6274a8e
This commit is contained in:
@@ -902,8 +902,11 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
|
||||
private void unlockUser(int userId) {
|
||||
synchronized (mLock) {
|
||||
UserState userState = getUserStateLocked(userId);
|
||||
onUserStateChangedLocked(userState);
|
||||
int parentUserId = mSecurityPolicy.resolveProfileParentLocked(userId);
|
||||
if (parentUserId == mCurrentUserId) {
|
||||
UserState userState = getUserStateLocked(mCurrentUserId);
|
||||
onUserStateChangedLocked(userState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user