am 075f94b7: am 9d705759: am 6cda1b3f: am 6b491b64: Merge "Invalid accessibility state if UI test process crashes in a bad time." into lmp-dev
* commit '075f94b76dae3e8143dfd5c92abf05c1812212c4': 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 {
|
} else {
|
||||||
userState.mBindingServices.add(mComponentName);
|
userState.mBindingServices.add(mComponentName);
|
||||||
mService = userState.mUiAutomationServiceClient.asBinder();
|
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;
|
userState.mUiAutomationService = this;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user