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

* commit 'c1bb553ad35eb797621ee1cdace458b39fb83af2':
  Some accessibility events wrongly filtered out (regression).
This commit is contained in:
Svetoslav
2014-09-18 04:46:24 +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);
}