am b8ee636a: am 324cfc54: Merge "Accessibility layer in inconsistent state after running UI test automation tests." into jb-mr1-dev
* commit 'b8ee636a864577c08a53bf4b1ba8120d952eb5d8': Accessibility layer in inconsistent state after running UI test automation tests.
This commit is contained in:
@@ -558,8 +558,9 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
|
|||||||
public void unregisterUiTestAutomationService(IAccessibilityServiceClient serviceClient) {
|
public void unregisterUiTestAutomationService(IAccessibilityServiceClient serviceClient) {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
// Automation service is not bound, so pretend it died to perform clean up.
|
// Automation service is not bound, so pretend it died to perform clean up.
|
||||||
if (mUiAutomationService != null
|
if (mUiAutomationService != null && mUiAutomationService.mServiceInterface != null
|
||||||
&& mUiAutomationService.mServiceInterface == serviceClient) {
|
&& serviceClient != null && mUiAutomationService.mServiceInterface
|
||||||
|
.asBinder() == serviceClient.asBinder()) {
|
||||||
mUiAutomationService.binderDied();
|
mUiAutomationService.binderDied();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user