Merge "fix IndexOutOfBoundsException in AccessibilityManagerService..manageServicesLocked" am: 14c7e67da8
am: 6006d681ab
Change-Id: I9ed4aca6b9d23a4e8196bdb9595c5e1b8fd2faf4
This commit is contained in:
@@ -398,12 +398,14 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
|||||||
removeUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0));
|
removeUser(intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 0));
|
||||||
} else if (Intent.ACTION_USER_PRESENT.equals(action)) {
|
} else if (Intent.ACTION_USER_PRESENT.equals(action)) {
|
||||||
// We will update when the automation service dies.
|
// We will update when the automation service dies.
|
||||||
|
synchronized (mLock) {
|
||||||
UserState userState = getCurrentUserStateLocked();
|
UserState userState = getCurrentUserStateLocked();
|
||||||
if (!userState.isUiAutomationSuppressingOtherServices()) {
|
if (!userState.isUiAutomationSuppressingOtherServices()) {
|
||||||
if (readConfigurationForUserStateLocked(userState)) {
|
if (readConfigurationForUserStateLocked(userState)) {
|
||||||
onUserStateChangedLocked(userState);
|
onUserStateChangedLocked(userState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (Intent.ACTION_SETTING_RESTORED.equals(action)) {
|
} else if (Intent.ACTION_SETTING_RESTORED.equals(action)) {
|
||||||
final String which = intent.getStringExtra(Intent.EXTRA_SETTING_NAME);
|
final String which = intent.getStringExtra(Intent.EXTRA_SETTING_NAME);
|
||||||
if (Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(which)) {
|
if (Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES.equals(which)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user