commit | 4c31c860b429db5393f8d420a7efb289e71c4d67 | [log] [tgz] |
---|---|---|
author | Becky Qiu <xuqiu@google.com> | Fri Jan 24 16:42:39 2020 -0800 |
committer | Becky Qiu <xuqiu@google.com> | Fri Jan 24 16:52:41 2020 -0800 |
tree | ac16d524b6ff6d230c0bed5385f8a95949e32e04 | |
parent | a315ec5f17240bd18d206a41f54da1e2fc873b1f [diff] |
[Overview Actions] Let RecentsView child match system LTR setting. Test:local Change-Id: I0342701d76e2115e249b6d51d0f4a224a0f022e4
diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java index cb20ed0..c1ea533 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/RecentsView.java
@@ -1918,6 +1918,11 @@ @Override public void addView(View child, int index) { + // RecentsView is set to RTL in the constructor when system is using LTR. Here we set the + // child direction back to match system settings. + child.setLayoutDirection( + Utilities.isRtl(getResources()) + ? View.LAYOUT_DIRECTION_RTL : View.LAYOUT_DIRECTION_LTR); super.addView(child, index); if (isExtraCardView(child, index)) { mTaskViewStartIndex++;