From 48eacec53e3f877712c2cf66676f453ddf6b90fb Mon Sep 17 00:00:00 2001 From: Svetoslav Date: Wed, 9 Apr 2014 16:45:46 -0700 Subject: Active window not correctly computed. The accessibility manager service was not handling the focused window properly which as a result was breaking the active window tracking. bug:13788022 Change-Id: Iaa3fadfbf7b9545f5151e3603beeda2662fe7618 --- .../com/android/server/accessibility/AccessibilityManagerService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'services/accessibility') diff --git a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java index 35f873e..c3db55e 100644 --- a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -3176,8 +3176,9 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub { // The active window also determined events from which // windows are delivered. synchronized (mLock) { + mFocusedWindowId = getFocusedWindowId(); if (mWindowsForAccessibilityCallback == null - && windowId == getFocusedWindowId()) { + && windowId == mFocusedWindowId) { mActiveWindowId = windowId; } } -- cgit v1.1