am 94cc958d: Some accessibility events wrongly filtered out (regression).

* commit '94cc958d0d440ade8ecc5bf97e5d2894cb10ab5f':
  Some accessibility events wrongly filtered out (regression).
This commit is contained in:
Svetoslav
2014-09-18 01:45:26 +00:00
committed by Android Git Automerger

View File

@@ -3277,7 +3277,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
// But we still have not gotten the window state from the
// window manager, so delay the notification until then.
AccessibilityWindowInfo window = findWindowById(event.getWindowId());
if (window == null || !window.isFocused()) {
if (window == null) {
mShowingFocusedWindowEvent = AccessibilityEvent.obtain(event);
return false;
}
@@ -3377,7 +3377,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
if (mShowingFocusedWindowEvent != null) {
final int windowId = mShowingFocusedWindowEvent.getWindowId();
AccessibilityWindowInfo window = findWindowById(windowId);
if (window != null && window.isFocused()) {
if (window != null) {
// Sending does the recycle.
sendAccessibilityEvent(mShowingFocusedWindowEvent, mCurrentUserId);
}