summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/accessibility/TouchExplorer.java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-05-30 14:06:32 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2012-05-30 18:41:08 -0700
commit9a4c5cd19106c3021eeead27fbc2aa05ad7d0d18 (patch)
tree2bb45fef9711f8d360bdd36b87907ef3c0c45fed /services/java/com/android/server/accessibility/TouchExplorer.java
parent5ab6e12b450d13c8eb501001c7a8669826b86ea4 (diff)
downloadframeworks_base-9a4c5cd19106c3021eeead27fbc2aa05ad7d0d18.zip
frameworks_base-9a4c5cd19106c3021eeead27fbc2aa05ad7d0d18.tar.gz
frameworks_base-9a4c5cd19106c3021eeead27fbc2aa05ad7d0d18.tar.bz2
Ask to enable touch exploration only the first time it enables the feature.
1. Now we are asking the user to grant permission to the service to enable touch exploration only the first time this service is enabled. If the service was uninstalled and then later installed we ask the user again. This avoids the scenario in which rebooting the device or upgrading an accessibility service leaves the device in a state in which the user cannot interact with. bug:6582088 Change-Id: I51d24e4892b3b48c9fb11dfb09ec1118502ba526
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 b0b2b8d..4c38ab9 100644
--- a/services/java/com/android/server/accessibility/TouchExplorer.java
+++ b/services/java/com/android/server/accessibility/TouchExplorer.java
@@ -1532,7 +1532,7 @@ public class TouchExplorer {
*/
public ReceivedPointerTracker(Context context) {
mThresholdActivePointer =
- ViewConfiguration.get(context).getScaledTouchSlop() * COEFFICIENT_ACTIVE_POINTER;
+ ViewConfiguration.get(context).getScaledTouchSlop() * COEFFICIENT_ACTIVE_POINTER;//Heie govna
}
/**