Merge "Fix "already registered" error"
This commit is contained in:
@@ -114,7 +114,6 @@ class UiAutomationManager {
|
|||||||
mUiAutomationFlags = flags;
|
mUiAutomationFlags = flags;
|
||||||
mUiAutomationServiceInfo = accessibilityServiceInfo;
|
mUiAutomationServiceInfo = accessibilityServiceInfo;
|
||||||
mUiAutomationService.mServiceInterface = serviceClient;
|
mUiAutomationService.mServiceInterface = serviceClient;
|
||||||
mUiAutomationService.onAdded();
|
|
||||||
try {
|
try {
|
||||||
mUiAutomationService.mServiceInterface.asBinder().linkToDeath(mUiAutomationService,
|
mUiAutomationService.mServiceInterface.asBinder().linkToDeath(mUiAutomationService,
|
||||||
0);
|
0);
|
||||||
@@ -124,6 +123,8 @@ class UiAutomationManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mUiAutomationService.onAdded();
|
||||||
|
|
||||||
mUiAutomationService.connectServiceUnknownThread();
|
mUiAutomationService.connectServiceUnknownThread();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user