Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76c0dd48 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

The active window for accessibilitiy incorrectly tracked.

1. The active window for accessibility purposes is the either the
   window the user is touching or the window that has input focus. We
   were using the touch exploration gesture end event to figure
   when the user stops touching the screen so we can set the active
   window to the input focused one. However, we do not send such
   gesture end if the user does not touch explore. If the user only
   taps we do not consider this touch exploring. We now have dedicated
   accessibility events for first and last touch and this change uses
   them as a guide when to update the active window.

bug:6523219

Change-Id: I6262c0c5f408b02dbaa127664e4b426935d7f81f
parent 03e7b888
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2042,7 +2042,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
                case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: {
                    mActiveWindowId = windowId;
                } break;
                case AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END: {
                case AccessibilityEvent.TYPE_TOUCH_INTERACTION_END: {
                    mActiveWindowId = getFocusedWindowId();
                } break;
            }
+1 −1
Original line number Diff line number Diff line
@@ -1670,7 +1670,7 @@ class TouchExplorer implements EventStreamTransformation {
         */
        public ReceivedPointerTracker(Context context) {
            mThresholdActivePointer =
                ViewConfiguration.get(context).getScaledTouchSlop() * COEFFICIENT_ACTIVE_POINTER;//Heie govna
                ViewConfiguration.get(context).getScaledTouchSlop() * COEFFICIENT_ACTIVE_POINTER;
        }

        /**