From 65355716db65191b17a228744fe5fb1c5e08a7f1 Mon Sep 17 00:00:00 2001 From: Chris Göllner Date: Tue, 21 May 2024 16:42:46 +0100 Subject: Shortcut Helper - UI for Categories - Implements single and dual pane UI for categories - Categories are hard coded for now - Also fixes an issue with the bottom sheet height Bug: 340819657 Test: Manually - See screenshots and videos Flag: ACONFIG com.android.systemui.keyboard_shortcut_helper_rewrite DEVELOPMENT Change-Id: I821249afb45c958130ee9733e461a2f08aad8c64 --- .../layout/activity_keyboard_shortcut_helper.xml | 18 +- packages/SystemUI/res/values/strings.xml | 39 ++ packages/SystemUI/res/values/styles.xml | 4 + .../shortcut/ui/composable/ShortcutHelper.kt | 413 +++++++++++++++++++++ .../shortcut/ui/view/ShortcutHelperActivity.kt | 23 +- 5 files changed, 484 insertions(+), 13 deletions(-) create mode 100644 packages/SystemUI/src/com/android/systemui/keyboard/shortcut/ui/composable/ShortcutHelper.kt diff --git a/packages/SystemUI/res/layout/activity_keyboard_shortcut_helper.xml b/packages/SystemUI/res/layout/activity_keyboard_shortcut_helper.xml index 292e49610e2a..06d1bf4c01cb 100644 --- a/packages/SystemUI/res/layout/activity_keyboard_shortcut_helper.xml +++ b/packages/SystemUI/res/layout/activity_keyboard_shortcut_helper.xml @@ -5,9 +5,9 @@ android:layout_width="match_parent" android:layout_height="match_parent"> - - - - + android:layout_height="match_parent" /> + + \ No newline at end of file diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index b5ec5b285486..c86500379656 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -3490,6 +3490,45 @@ Recently used by %1$s (%2$s \u2022 %3$s) + + System + + Multitasking + + Input + + App shortcuts + + Accessibility + + Keyboard shortcuts + + Search shortcuts + + Collapse icon + + Expand icon + Keyboard backlight diff --git a/packages/SystemUI/res/values/styles.xml b/packages/SystemUI/res/values/styles.xml index 2c4cdb9ee796..8d3bb15e4538 100644 --- a/packages/SystemUI/res/values/styles.xml +++ b/packages/SystemUI/res/values/styles.xml @@ -1667,6 +1667,10 @@ @color/transparent + +