am 6b491b64: Merge "Invalid accessibility state if UI test process crashes in a bad time." into lmp-dev
* commit '6b491b64ba7200a85199452b6a7f99c777105f22': Invalid accessibility state if UI test process crashes in a bad time.
This commit is contained in:
@@ -2004,7 +2004,15 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
||||
} else {
|
||||
userState.mBindingServices.add(mComponentName);
|
||||
mService = userState.mUiAutomationServiceClient.asBinder();
|
||||
onServiceConnected(mComponentName, mService);
|
||||
mMainHandler.post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
// Simulate asynchronous connection since in onServiceConnected
|
||||
// we may modify the state data in case of an error but bind is
|
||||
// called while iterating over the data and bad things can happen.
|
||||
onServiceConnected(mComponentName, mService);
|
||||
}
|
||||
});
|
||||
userState.mUiAutomationService = this;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user