diff options
| author | Svetoslav <svetoslavganov@google.com> | 2014-12-08 19:12:22 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-08 19:12:22 +0000 |
| commit | f477aeb367f05a64a03ed09efc9e0a9d6f9a6ec2 (patch) | |
| tree | 25454b318857b12c549c7315626730f047800ee6 /services/accessibility/java/com/android | |
| parent | 967da505b2cb96ed85161fd940dbecb467bfe38c (diff) | |
| parent | ed068f7c3047b3775647a6023c6960a4fc535144 (diff) | |
| download | frameworks_base-f477aeb367f05a64a03ed09efc9e0a9d6f9a6ec2.zip frameworks_base-f477aeb367f05a64a03ed09efc9e0a9d6f9a6ec2.tar.gz frameworks_base-f477aeb367f05a64a03ed09efc9e0a9d6f9a6ec2.tar.bz2 | |
am ed068f7c: am 3a0d878a: Ensure all events from a showing window are dispatched.
* commit 'ed068f7c3047b3775647a6023c6960a4fc535144':
Ensure all events from a showing window are dispatched.
Diffstat (limited to 'services/accessibility/java/com/android')
| -rw-r--r-- | services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java index 2781890..89aebe8 100644 --- a/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java +++ b/services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java @@ -3314,8 +3314,6 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub { public int mAccessibilityFocusedWindowId = INVALID_WINDOW_ID; public long mAccessibilityFocusNodeId = AccessibilityNodeInfo.UNDEFINED_ITEM_ID; - public AccessibilityEvent mShowingFocusedWindowEvent; - private boolean mTouchInteractionInProgress; private boolean canDispatchAccessibilityEventLocked(AccessibilityEvent event) { @@ -3324,19 +3322,6 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub { // All events that are for changes in a global window // state should *always* be dispatched. case AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED: - if (mWindowsForAccessibilityCallback != null) { - // OK, this is fun. Sometimes the focused window is notified - // it has focus before being shown. Historically this event - // means that the window is focused and can be introspected. - // 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) { - mShowingFocusedWindowEvent = AccessibilityEvent.obtain(event); - return false; - } - } - // $fall-through$ case AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED: case AccessibilityEvent.TYPE_ANNOUNCEMENT: // All events generated by the user touching the @@ -3428,18 +3413,6 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub { } notifyWindowsChanged(); - - // If we are delaying a window state change event as the window - // source was showing when it was fired, now is the time to send. - if (mShowingFocusedWindowEvent != null) { - final int windowId = mShowingFocusedWindowEvent.getWindowId(); - AccessibilityWindowInfo window = findWindowById(windowId); - if (window != null) { - // Sending does the recycle. - sendAccessibilityEvent(mShowingFocusedWindowEvent, mCurrentUserId); - } - mShowingFocusedWindowEvent = null; - } } public boolean computePartialInteractiveRegionForWindowLocked(int windowId, |
