From 1bf0fe1b70445854d4ff99d87eb4e4593c327fee Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Tue, 30 Nov 2021 15:32:45 +0000 Subject: [PATCH] Add back screenshot button to Launcher3 - Also make spacing between buttons always 36dp - Updated screenshot button image for Launcher3 Fix: 208384949 Test: Start overview in Launcher3WithQuickStep, test screenshot button is working Change-Id: Ieb60ce134813202c1d14137fff0a131e1f5f8c96 --- quickstep/res/drawable/ic_screenshot.xml | 23 +++++++++++++------ .../res/layout/overview_actions_container.xml | 12 ++++------ quickstep/res/values/dimens.xml | 2 ++ .../quickstep/views/OverviewActionsView.java | 9 ++++++++ res/values/dimens.xml | 2 ++ src/com/android/launcher3/DeviceProfile.java | 5 ++++ 6 files changed, 39 insertions(+), 14 deletions(-) diff --git a/quickstep/res/drawable/ic_screenshot.xml b/quickstep/res/drawable/ic_screenshot.xml index d97eae1d15..9ee6c44011 100644 --- a/quickstep/res/drawable/ic_screenshot.xml +++ b/quickstep/res/drawable/ic_screenshot.xml @@ -13,11 +13,20 @@ limitations under the License. --> + android:width="20dp" + android:height="20dp" + android:viewportWidth="20" + android:viewportHeight="20"> - + android:pathData="M5.8334,1.666H8.3334V3.3327H5.8334V6.666H4.1667V3.3327C4.1667,2.4122 4.9129,1.666 5.8334,1.666Z" + android:fillColor="#000000"/> + + + + \ No newline at end of file diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index 1c7b5099a8..0fda0bf8d4 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -38,13 +38,13 @@ android:layout_height="wrap_content" android:drawableStart="@drawable/ic_screenshot" android:text="@string/action_screenshot" - android:theme="@style/ThemeControlHighlightWorkspaceColor" - android:visibility="gone" /> + android:theme="@style/ThemeControlHighlightWorkspaceColor" /> + android:visibility="gone" />