From 941fa431c00a35d394b78c1ced4b81aae9da39d4 Mon Sep 17 00:00:00 2001 From: yyhua Date: Mon, 3 Feb 2025 21:44:36 +0000 Subject: [MagicAction] Created didcated xml layout for magic action and refactored shouldShowSmartReplyView to switch the layout based on whether it is magic action. Note: The new layout file magic_action_button.xml was forked from smart_action_button.xml, so there is no UI change in this CL. Screenshots Smart Action: http://screen/6AD3phjRupLyqfq Magic Action: http://screen/4tMRr4Phczwmx59 Next - Update magic action layout to be aligned with design spec - Update the button animation Test: atest SmartActionScreenshotTest Flag: com.android.systemui.notification_magic_actions_treatment Change-Id: I3219f59c5a54d93563b1ba2058ee54261f279ba5 --- .../SystemUI/res/layout/magic_action_button.xml | 19 ++++++++++++ .../statusbar/policy/SmartReplyStateInflater.kt | 36 +++++++++++++--------- 2 files changed, 40 insertions(+), 15 deletions(-) create mode 100644 packages/SystemUI/res/layout/magic_action_button.xml diff --git a/packages/SystemUI/res/layout/magic_action_button.xml b/packages/SystemUI/res/layout/magic_action_button.xml new file mode 100644 index 000000000000..59392ef0fb33 --- /dev/null +++ b/packages/SystemUI/res/layout/magic_action_button.xml @@ -0,0 +1,19 @@ +