From 29a771457ec0e8a90305503f37fb62ac76796a29 Mon Sep 17 00:00:00 2001 From: Beth Thibodeau Date: Tue, 12 Jul 2022 13:43:20 -0500 Subject: [PATCH] Fix constraints for collapsed layout The missing constraints for the time views would cause the play/pause button to be laid out incorrectly in RTL mode. Added values to match the prev/next buttons (same as the expanded layout). Also removed code that was changing visibility of these in code since the time views will always be GONE in the collapsed layout Fixes: 237730543 Test: manual (video in bug) Change-Id: I6a9e29de550c4bba05d6fc38e3be3798f0b525b6 --- .../SystemUI/res/layout/media_session_view.xml | 3 ++- .../res/xml/media_session_collapsed.xml | 17 +++++++++++++---- .../systemui/media/MediaControlPanel.java | 5 +---- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/packages/SystemUI/res/layout/media_session_view.xml b/packages/SystemUI/res/layout/media_session_view.xml index 9c49607d414ee..c526d9cc8dd38 100644 --- a/packages/SystemUI/res/layout/media_session_view.xml +++ b/packages/SystemUI/res/layout/media_session_view.xml @@ -150,7 +150,7 @@ + + app:layout_constraintLeft_toRightOf="@id/media_action_barrier_start" /> + android:visibility="gone" + app:layout_constraintRight_toLeftOf="@id/media_progress_bar" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@id/media_seamless" + app:layout_constraintLeft_toRightOf="@id/media_action_barrier_start" /> + android:visibility="gone" + app:layout_constraintVertical_bias="1" + app:layout_constraintLeft_toRightOf="@id/media_progress_bar" + app:layout_constraintRight_toLeftOf="@id/action0" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintTop_toBottomOf="@id/media_seamless" />