summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Josh <jmokut@google.com> 2024-11-29 15:11:42 +0000
committer Josh <jmokut@google.com> 2024-12-04 18:22:14 +0000
commit51d9b10cc714d175d31a265a7c611ee5273dda25 (patch)
tree1cf5044eca52342956bb17aa219186066ca016dd /libs/androidfw/misc.cpp
parentde6e17dafad1344e128289e09c76c310b44c6a14 (diff)
dynamic shortcut label/icon retrieval for app launch shortcuts
Context: previously inputManager when returning custom default-app launch shortcuts would send a key gesture type of the format KEY_GESTURE_TYPE_LAUNCH_DEFAULT_[x]. Now these key gesture types have been deprecated and inputManager will send KEY_GESTURE_TYPE_LAUNCH_APPLICATION irrespective of the app shortcut. Input manager will also send additional app launch data for these shortcuts from which we can calculate the shortcut label/icon. I've updated CustomShortcutCategoriesRepository's implementation of data retrieval to reflect these updates. Test: CustomShortcutCategoriesRepositoryTest Test: InputGestureDataUtilsTest Flag: com.android.systemui.keyboard_shortcut_helper_shortcut_customizer Bug: 380231474 Change-Id: I3e4a0b1e769a90e3fe0978bcec779f24da0204ab
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions