Merge "Active window not correctly computed."

This commit is contained in:
Svetoslav
2014-04-09 23:48:41 +00:00
committed by Android (Google) Code Review

View File

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