From 4636fbc16398cc62e12c241132d16a93023c8563 Mon Sep 17 00:00:00 2001 From: Jeff DeCew Date: Mon, 22 Jun 2020 20:17:23 -0400 Subject: [PATCH] Fix RTL text in TransitionLayout Fixes: 159656380 Test: manual - video attached to bug Change-Id: Ic676c69f3bd5072900563947efc3656a5b22ce70 --- packages/SystemUI/res/layout/media_view.xml | 19 +++-------- packages/SystemUI/res/xml/media_collapsed.xml | 33 +++++-------------- packages/SystemUI/res/xml/media_expanded.xml | 6 ++-- .../util/animation/TransitionLayout.kt | 30 ++++++++++++++--- 4 files changed, 42 insertions(+), 46 deletions(-) diff --git a/packages/SystemUI/res/layout/media_view.xml b/packages/SystemUI/res/layout/media_view.xml index 8441282bd46d3..da4cb2478182c 100644 --- a/packages/SystemUI/res/layout/media_view.xml +++ b/packages/SystemUI/res/layout/media_view.xml @@ -65,25 +65,16 @@ + accomplished by having all actions appear in a LTR chain within the parent, and then biasing it + to the right side, then this barrier is used to bound the text views. --> - - @@ -212,7 +202,6 @@ android:fontFamily="@*android:string/config_headlineFontFamily" android:singleLine="true" android:textColor="@color/media_secondary_text" - android:textDirection="locale" android:textSize="14sp" /> - - - - @@ -220,7 +202,8 @@ app:layout_constraintHorizontal_chainStyle="packed" app:layout_constraintTop_toBottomOf="@id/app_name" app:layout_constraintLeft_toRightOf="@id/action3" - app:layout_constraintRight_toRightOf="@id/media_action_guidebox" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintHorizontal_bias="0" > diff --git a/packages/SystemUI/res/xml/media_expanded.xml b/packages/SystemUI/res/xml/media_expanded.xml index 8010f97bf560e..36da21de88920 100644 --- a/packages/SystemUI/res/xml/media_expanded.xml +++ b/packages/SystemUI/res/xml/media_expanded.xml @@ -83,11 +83,12 @@