We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33c0a61 + 7fd9882 commit 324cfc5Copy full SHA for 324cfc5
services/java/com/android/server/accessibility/AccessibilityManagerService.java
@@ -558,8 +558,9 @@ public void temporaryEnableAccessibilityStateUntilKeyguardRemoved(
558
public void unregisterUiTestAutomationService(IAccessibilityServiceClient serviceClient) {
559
synchronized (mLock) {
560
// Automation service is not bound, so pretend it died to perform clean up.
561
- if (mUiAutomationService != null
562
- && mUiAutomationService.mServiceInterface == serviceClient) {
+ if (mUiAutomationService != null && mUiAutomationService.mServiceInterface != null
+ && serviceClient != null && mUiAutomationService.mServiceInterface
563
+ .asBinder() == serviceClient.asBinder()) {
564
mUiAutomationService.binderDied();
565
}
566
0 commit comments