summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Robert Horvath <robhor@google.com> 2023-05-03 09:19:34 +0000
committer Robert Horvath <robhor@google.com> 2023-06-28 12:03:02 +0000
commitbcb0d40688e8886cd01773f8ed4fdcf033c63f38 (patch)
treefdf94b22f0688fddc44f4c3a942c98affaf86686 /libs/androidfw/StringPool.cpp
parentf743000d35038e8c481a7a1a9e7ae93e8296a80e (diff)
Add support for keyboard shortcuts panel on TV
The keyboard shortcuts panel lists available shortcuts for the currently focused app + system shortcuts. Apps can request the panel to be shown by calling Activity#requestShowKeyboardShortcuts. Calling this method on TV caused SystemUI to crash, as KeyboardShortcutsReceiver couldn't be instantiated. Adding the KeyboardShortcutsModule on TV fixes this crash. Adding the override for toggleKeyboardShortcutsMenu in TvStatusBar enables the global toggle shortcuts panel shortcut to work. The other changes are to improve usability of the dialog on TV: - Make the list rows focusable - Give the whole row a suitable contentDescription for a11y - Give the items a background that highlights the focused row - Hide the "Recents" row on devices that do not support it (like TV) Bug: 278514212 Test: manual on TV device Change-Id: Ia8285d5b05ad909cecb16eb087cbbc56ed86475a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions