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