summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java
diff options
context:
space:
mode:
authorTony <twickham@google.com>2017-05-10 21:23:57 -0500
committerTony Wickham <twickham@google.com>2017-05-11 13:59:52 -0700
commit18c4aa458ea5c9ee5513fa756da4f5492bb7c5b8 (patch)
treec0aa6fa777b06931b50e295e5a5beaa2330fec4e /src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java
parent5cfde85cb6d095585b932d9e3e2c4fe78aa0dafe (diff)
downloadandroid_packages_apps_Trebuchet-18c4aa458ea5c9ee5513fa756da4f5492bb7c5b8.tar.gz
android_packages_apps_Trebuchet-18c4aa458ea5c9ee5513fa756da4f5492bb7c5b8.tar.bz2
android_packages_apps_Trebuchet-18c4aa458ea5c9ee5513fa756da4f5492bb7c5b8.zip
Update accessibility for popup
- Content description includes count of notifications. - Notifications have a dismiss action. - All icons that support shortcuts will have action to show shortcut menu, since there will be system shortcuts even if there are no deep shortcuts. Bug: 36564782 Change-Id: I51b085fa26754f2dcd93c7db6548f2edf054f494
Diffstat (limited to 'src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java')
-rw-r--r--src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java b/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java
index a476650c9..70e578163 100644
--- a/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java
+++ b/src/com/android/launcher3/accessibility/LauncherAccessibilityDelegate.java
@@ -37,6 +37,7 @@ import com.android.launcher3.Workspace;
import com.android.launcher3.dragndrop.DragController.DragListener;
import com.android.launcher3.dragndrop.DragOptions;
import com.android.launcher3.folder.Folder;
+import com.android.launcher3.shortcuts.DeepShortcutManager;
import com.android.launcher3.util.Thunk;
import java.util.ArrayList;
@@ -104,8 +105,7 @@ public class LauncherAccessibilityDelegate extends AccessibilityDelegate impleme
// If the request came from keyboard, do not add custom shortcuts as that is already
// exposed as a direct shortcut
- if (!fromKeyboard && host instanceof BubbleTextView
- && ((BubbleTextView) host).hasDeepShortcuts()) {
+ if (!fromKeyboard && DeepShortcutManager.supportsShortcuts(item)) {
info.addAction(mActions.get(DEEP_SHORTCUTS));
}