diff options
author | Tony <twickham@google.com> | 2017-05-10 21:23:57 -0500 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2017-05-11 13:59:52 -0700 |
commit | 18c4aa458ea5c9ee5513fa756da4f5492bb7c5b8 (patch) | |
tree | c0aa6fa777b06931b50e295e5a5beaa2330fec4e /src/com/android/launcher3/Launcher.java | |
parent | 5cfde85cb6d095585b932d9e3e2c4fe78aa0dafe (diff) | |
download | android_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/Launcher.java')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index eef578d8f..2de10030d 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -4061,8 +4061,8 @@ public class Launcher extends BaseActivity shortcutInfos.add(new KeyboardShortcutInfo(getString(R.string.custom_actions), KeyEvent.KEYCODE_O, KeyEvent.META_CTRL_ON)); } - if (currentFocus instanceof BubbleTextView && - ((BubbleTextView) currentFocus).hasDeepShortcuts()) { + if (currentFocus.getTag() instanceof ItemInfo + && DeepShortcutManager.supportsShortcuts((ItemInfo) currentFocus.getTag())) { shortcutInfos.add(new KeyboardShortcutInfo(getString(R.string.action_deep_shortcut), KeyEvent.KEYCODE_S, KeyEvent.META_CTRL_ON)); } |