diff options
author | Svetoslav <svetoslavganov@google.com> | 2014-04-09 16:45:46 -0700 |
---|---|---|
committer | Svetoslav <svetoslavganov@google.com> | 2014-04-09 16:45:49 -0700 |
commit | 48eacec53e3f877712c2cf66676f453ddf6b90fb (patch) | |
tree | a6d96d62f122dd206fbc00035a6e7a0f41cd9d42 /services/accessibility | |
parent | 3c86a27d3e9044d04d0f176e59a1ebbcd774a54c (diff) | |
download | frameworks_base-48eacec53e3f877712c2cf66676f453ddf6b90fb.zip frameworks_base-48eacec53e3f877712c2cf66676f453ddf6b90fb.tar.gz frameworks_base-48eacec53e3f877712c2cf66676f453ddf6b90fb.tar.bz2 |
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
Diffstat (limited to 'services/accessibility')
-rw-r--r-- | services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |