From 6431d6e87910bc7c7767c40d42f51961dc462134 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Wed, 27 Mar 2024 16:05:50 +0000 Subject: [PATCH] Align action_buttons at bottom of OverviewActionsView - http://ag/q/topic:%22b/329255757%22 caused a regression that in landscape, action_buttons shifted up when ShareTarget become visible, because OverviewActionsView become taller when this happens, and the topMargin is no longer valid to put actions_button at the position we want - Bring back layout_gravity="bottom" solves the issue, as bottomMarign is always correct Fix: 331517987 Test: manual as ShareTarget requires AiAi interaction and cannot easily be mocked Flag: None Change-Id: Iadcdf5731485f42f9586703e34e55ed9b4121bf9 --- quickstep/res/layout/overview_actions_container.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index 758622b64b..5d489f5f34 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -23,6 +23,7 @@ android:id="@+id/action_buttons" android:layout_width="match_parent" android:layout_height="@dimen/overview_actions_height" + android:layout_gravity="bottom" android:gravity="center_horizontal" android:orientation="horizontal">