Merge "Disable clings when explore by touch is enabled. Bug: 11067870 Change-Id: If203f3a23de3bd3192ff748bbccc04d74b0a73fa" into jb-ub-now-indigo-rose
This commit is contained in:
committed by
Android (Google) Code Review
commit
cffa7175f8
@@ -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;
|
||||
@@ -4088,6 +4089,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 =
|
||||
|
||||
Reference in New Issue
Block a user