From 41eadd1a912bbb5efdf2849c6a916575d668064e Mon Sep 17 00:00:00 2001 From: Jeremy Sim Date: Mon, 29 Apr 2024 18:59:37 -0700 Subject: [PATCH] Fix bug with double-relayout of Overview Actions View This CL refactors Overview Actions View so that a separate view, R.id.group_action_buttons, is used for buttons related to grouped tasks. This also changes the way visibility is handled with actions buttons -- instead of all buttons living on one bar and being toggled on and off, sometimes the whole bar is toggled on and off (to change from single task actions to group actions and vice versa). This prevents the same view from having its visibility changed twice in in one layout and causing the wrong visibility to be rendered. Fixes: 333844287 Test: Manual Flag: ACONFIG com.android.wm.shell.enable_app_pairs NEXTFOOD Change-Id: I1b6be4637ac8c8d424e7633c437fca376ecdd757 --- .../res/layout/overview_actions_container.xml | 15 +- .../res/layout/overview_actions_container.xml | 14 +- .../RecentsViewStateController.java | 6 +- .../NoButtonQuickSwitchTouchController.java | 2 +- .../FallbackRecentsStateController.java | 6 +- .../quickstep/views/OverviewActionsView.java | 178 ++++++++---------- .../android/quickstep/views/RecentsView.java | 10 +- .../quickstep/TaplTestsSplitscreen.java | 2 +- .../android/launcher3/tapl/BaseOverview.java | 25 ++- 9 files changed, 144 insertions(+), 114 deletions(-) diff --git a/go/quickstep/res/layout/overview_actions_container.xml b/go/quickstep/res/layout/overview_actions_container.xml index df0912478b..b1a62022e9 100644 --- a/go/quickstep/res/layout/overview_actions_container.xml +++ b/go/quickstep/res/layout/overview_actions_container.xml @@ -121,6 +121,17 @@ android:layout_weight="1" android:visibility="gone" /> + + + + +