summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/Utilities.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2017-10-19 16:15:09 -0700
committerSunny Goyal <sunnygoyal@google.com>2017-10-20 13:56:47 -0700
commitc99cb174c3369c8c192efc12d97dd8e9f6d189b9 (patch)
treee5d112b3fe7fba4c5306242f89fb25ee91874db2 /src/com/android/launcher3/Utilities.java
parentcac861068eeb088ef8524bd39ecba0f2006c02e9 (diff)
downloadandroid_packages_apps_Trebuchet-c99cb174c3369c8c192efc12d97dd8e9f6d189b9.tar.gz
android_packages_apps_Trebuchet-c99cb174c3369c8c192efc12d97dd8e9f6d189b9.tar.bz2
android_packages_apps_Trebuchet-c99cb174c3369c8c192efc12d97dd8e9f6d189b9.zip
Moving some state specific logic to subclass of LauncherState
Bug: 67678570 Change-Id: I1316f91c9f19bd572e4a0da67a22fa8921e1dcf9
Diffstat (limited to 'src/com/android/launcher3/Utilities.java')
-rw-r--r--src/com/android/launcher3/Utilities.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Utilities.java b/src/com/android/launcher3/Utilities.java
index 71677782d..e6bc77066 100644
--- a/src/com/android/launcher3/Utilities.java
+++ b/src/com/android/launcher3/Utilities.java
@@ -614,6 +614,12 @@ public final class Utilities {
return c == null || c.isEmpty();
}
+ public static boolean isAccessibilityEnabled(Context context) {
+ AccessibilityManager accessibilityManager = (AccessibilityManager)
+ context.getSystemService(Context.ACCESSIBILITY_SERVICE);
+ return accessibilityManager.isEnabled();
+ }
+
public static void sendCustomAccessibilityEvent(View target, int type, String text) {
AccessibilityManager accessibilityManager = (AccessibilityManager)
target.getContext().getSystemService(Context.ACCESSIBILITY_SERVICE);