diff options
author | Casey Burkhardt <caseyburkhardt@google.com> | 2013-10-04 14:13:15 -0700 |
---|---|---|
committer | Casey Burkhardt <caseyburkhardt@google.com> | 2013-10-04 15:16:47 -0700 |
commit | 0d9cbae4dd6603870d1cd26c9a7b547b5eea6b0c (patch) | |
tree | 9826b551763d2168741c6556b419b38079d44193 /src/com | |
parent | 8cffccc15f0dc389ba556093de80be6bade06213 (diff) | |
download | android_packages_apps_Trebuchet-0d9cbae4dd6603870d1cd26c9a7b547b5eea6b0c.tar.gz android_packages_apps_Trebuchet-0d9cbae4dd6603870d1cd26c9a7b547b5eea6b0c.tar.bz2 android_packages_apps_Trebuchet-0d9cbae4dd6603870d1cd26c9a7b547b5eea6b0c.zip |
Disable clings when explore by touch is enabled.
Bug: 11067870
Change-Id: If203f3a23de3bd3192ff748bbccc04d74b0a73fa
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index e3e065e03..45c95736e 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -87,6 +87,7 @@ import android.view.ViewTreeObserver; import android.view.ViewTreeObserver.OnGlobalLayoutListener; import android.view.WindowManager; import android.view.accessibility.AccessibilityEvent; +import android.view.accessibility.AccessibilityManager; import android.view.animation.AccelerateDecelerateInterpolator; import android.view.animation.DecelerateInterpolator; import android.view.inputmethod.InputMethodManager; @@ -4091,6 +4092,13 @@ public class Launcher extends Activity // disable clings when running in a test harness if(ActivityManager.isRunningInTestHarness()) return false; + // Disable clings for accessibility when explore by touch is enabled + final AccessibilityManager a11yManager = (AccessibilityManager) getSystemService( + ACCESSIBILITY_SERVICE); + if (a11yManager.isTouchExplorationEnabled()) { + return false; + } + // Restricted secondary users (child mode) will potentially have very few apps // seeded when they start up for the first time. Clings won't work well with that // boolean supportsLimitedUsers = |