Merge "Fix "already registered" error"

This commit is contained in:
Phil Weaver
2021-07-19 17:18:14 +00:00
committed by Gerrit Code Review

View File

@@ -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();
} }
} }