Loading services/accessibility/java/com/android/server/accessibility/UiAutomationManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -272,8 +272,10 @@ class UiAutomationManager { mMainHandler.post(() -> { try { final IAccessibilityServiceClient serviceInterface; final UiAutomationService uiAutomationService; synchronized (mLock) { serviceInterface = mServiceInterface; uiAutomationService = mUiAutomationService; if (serviceInterface == null) { mService = null; } else { Loading @@ -283,8 +285,8 @@ class UiAutomationManager { } // If the serviceInterface is null, the UiAutomation has been shut down on // another thread. if (serviceInterface != null) { mUiAutomationService.addWindowTokensForAllDisplays(); if (serviceInterface != null && uiAutomationService != null) { uiAutomationService.addWindowTokensForAllDisplays(); if (mTrace.isA11yTracingEnabledForTypes( AccessibilityTrace.FLAGS_ACCESSIBILITY_SERVICE_CLIENT)) { mTrace.logTrace("UiAutomationService.connectServiceUnknownThread", Loading Loading
services/accessibility/java/com/android/server/accessibility/UiAutomationManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -272,8 +272,10 @@ class UiAutomationManager { mMainHandler.post(() -> { try { final IAccessibilityServiceClient serviceInterface; final UiAutomationService uiAutomationService; synchronized (mLock) { serviceInterface = mServiceInterface; uiAutomationService = mUiAutomationService; if (serviceInterface == null) { mService = null; } else { Loading @@ -283,8 +285,8 @@ class UiAutomationManager { } // If the serviceInterface is null, the UiAutomation has been shut down on // another thread. if (serviceInterface != null) { mUiAutomationService.addWindowTokensForAllDisplays(); if (serviceInterface != null && uiAutomationService != null) { uiAutomationService.addWindowTokensForAllDisplays(); if (mTrace.isA11yTracingEnabledForTypes( AccessibilityTrace.FLAGS_ACCESSIBILITY_SERVICE_CLIENT)) { mTrace.logTrace("UiAutomationService.connectServiceUnknownThread", Loading