From ddb12d7a0c02fa89a4845b6607b83a9fbfff1d33 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 3 Apr 2024 13:41:20 +0000 Subject: [PATCH] Reland "Update Split button visibility based on DeviceProfile change" This reverts commit 38bc885de9407f7e50e76fbe6470f8425cb5f61b. - Always request layout of action_buttons after changing visibility of its children - Update Split button visibility based on DeviceProfile change in updateDimension() only - Update Split button visibility based on 3P launcher in initialization only - Also simplified action_buttons to wrap_content and layout in middle of parent - Also removed the space between buttons and use marginStart - Fixed TAPL to not expect save app pair button on phone. Before this CL actions_buttons are still on view hierarchy despite they're not visible on screen. Fix: 321291049 Fix: 329255757 Test: Clear all tasks, fold, launch app, swipe up to Overivew; repeat in RTL Test: OverviewImageTest Flag: None (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7d0edb46ac0a09aa0c801598b46cd338d04886a9) Merged-In: I9ecf872279f6f07d2d9bc33fb09031568023cb77 Change-Id: I9ecf872279f6f07d2d9bc33fb09031568023cb77 --- .../res/layout/overview_actions_container.xml | 12 ++----- .../quickstep/views/OverviewActionsView.java | 35 ++++++++++++------- .../android/quickstep/views/RecentsView.java | 6 ++-- .../android/launcher3/tapl/BaseOverview.java | 5 +-- 4 files changed, 31 insertions(+), 27 deletions(-) diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index 5d489f5f34..d086da481d 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -21,10 +21,9 @@