summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-06-03 19:03:12 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-03 19:03:13 +0000
commitf4fe7fc5449bbfcfa7e95c7f9040c81d833a1fdb (patch)
treee9d88c9d2cf090b2204599c5b0462b5cd67fb028 /src
parent5dd1487da69062a0f40743d7a8df042440b85e9a (diff)
parentf8c6f885f032dad4e6b09e02ca97545783bccb70 (diff)
downloadandroid_packages_apps_Trebuchet-f4fe7fc5449bbfcfa7e95c7f9040c81d833a1fdb.tar.gz
android_packages_apps_Trebuchet-f4fe7fc5449bbfcfa7e95c7f9040c81d833a1fdb.tar.bz2
android_packages_apps_Trebuchet-f4fe7fc5449bbfcfa7e95c7f9040c81d833a1fdb.zip
Merge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into ub-launcher3-burnaby
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/DeviceProfile.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java
index bee6cb093..82be409dd 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -405,7 +405,8 @@ public class DeviceProfile {
View searchBar = launcher.getSearchBar();
lp = (FrameLayout.LayoutParams) searchBar.getLayoutParams();
if (hasVerticalBarLayout) {
- // Vertical search bar space
+ // Vertical search bar space -- The search bar is fixed in the layout to be on the left
+ // of the screen regardless of RTL
lp.gravity = Gravity.LEFT;
lp.width = searchBarSpaceHeightPx;
@@ -438,8 +439,9 @@ public class DeviceProfile {
View hotseat = launcher.findViewById(R.id.hotseat);
lp = (FrameLayout.LayoutParams) hotseat.getLayoutParams();
if (hasVerticalBarLayout) {
- // Vertical hotseat
- lp.gravity = Gravity.END;
+ // Vertical hotseat -- The hotseat is fixed in the layout to be on the right of the
+ // screen regardless of RTL
+ lp.gravity = Gravity.RIGHT;
lp.width = hotseatBarHeightPx;
lp.height = LayoutParams.MATCH_PARENT;
hotseat.findViewById(R.id.layout).setPadding(0, 2 * edgeMarginPx, 0, 2 * edgeMarginPx);