From 44564126c36c7ca75028e3a3cae3dcb4157aa6f2 Mon Sep 17 00:00:00 2001 From: Matthew Fritze Date: Thu, 14 Jul 2016 12:57:04 -0700 Subject: [PATCH] Settings ViewPager now correctly handles RTL mode Previously, the settings and support tabs were incorrectly orderded, and had inverted transitions on click and on swipe. Ordering of tabs now correctly displays All Settings as the default, right tab, and the Support tab to its left. The tab headers also now function properly in transition, and onclick. Change-Id: Iab499ee13433cb78941bc33cbb0e99ffe2937174 Fixes: 30079049 --- res/layout/dashboard_container.xml | 2 +- .../dashboard/DashboardContainerFragment.java | 26 +++++-- .../widget/RtlCompatibleViewPager.java | 73 +++++++++++++++++++ .../settings/widget/SlidingTabLayout.java | 34 +++++++-- 4 files changed, 119 insertions(+), 16 deletions(-) create mode 100644 src/com/android/settings/widget/RtlCompatibleViewPager.java diff --git a/res/layout/dashboard_container.xml b/res/layout/dashboard_container.xml index 4cab75c8e0f..f6b81ae21e7 100644 --- a/res/layout/dashboard_container.xml +++ b/res/layout/dashboard_container.xml @@ -14,7 +14,7 @@ limitations under the License. --> -