summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/accessibility/TouchExplorer.java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-09-24 19:16:16 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2012-09-24 19:16:20 -0700
commit76c0dd48279531cb31e2a284a270c535664cbf81 (patch)
treefd521c33a419902f395555fa49717b930f69cc9d /services/java/com/android/server/accessibility/TouchExplorer.java
parent03e7b8881599da69207a93a2bcbbe5050efb6633 (diff)
downloadframeworks_base-76c0dd48279531cb31e2a284a270c535664cbf81.zip
frameworks_base-76c0dd48279531cb31e2a284a270c535664cbf81.tar.gz
frameworks_base-76c0dd48279531cb31e2a284a270c535664cbf81.tar.bz2
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
Diffstat (limited to 'services/java/com/android/server/accessibility/TouchExplorer.java')
-rw-r--r--services/java/com/android/server/accessibility/TouchExplorer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/accessibility/TouchExplorer.java b/services/java/com/android/server/accessibility/TouchExplorer.java
index 0468b4d..921bed7 100644
--- a/services/java/com/android/server/accessibility/TouchExplorer.java
+++ b/services/java/com/android/server/accessibility/TouchExplorer.java
@@ -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;
}
/**