summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2012-12-18 16:25:49 -0800
committerFabrice Di Meglio <fdimeglio@google.com>2013-01-23 18:23:06 -0800
commitcc11f742586b57c576026b7756a46209fe793ea1 (patch)
tree9b71fc15f975c68bfe7e35d5395669dee4df8b28 /src/com/android/launcher2/AppsCustomizePagedView.java
parentffc9f488a31b99248c27977c53d3b5f731f590e7 (diff)
downloadandroid_packages_apps_Trebuchet-cc11f742586b57c576026b7756a46209fe793ea1.tar.gz
android_packages_apps_Trebuchet-cc11f742586b57c576026b7756a46209fe793ea1.tar.bz2
android_packages_apps_Trebuchet-cc11f742586b57c576026b7756a46209fe793ea1.zip
Add first RTL support to Launcher
See bug #8064062 Launcher needs to be RTL aware Change-Id: I24b1f1977fb65246afd2005440567b5850939621
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizePagedView.java')
-rw-r--r--src/com/android/launcher2/AppsCustomizePagedView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java
index 4bfeb60b8..bd7839637 100644
--- a/src/com/android/launcher2/AppsCustomizePagedView.java
+++ b/src/com/android/launcher2/AppsCustomizePagedView.java
@@ -1451,11 +1451,11 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
int ix = i % mWidgetCountX;
int iy = i / mWidgetCountX;
GridLayout.LayoutParams lp = new GridLayout.LayoutParams(
- GridLayout.spec(iy, GridLayout.LEFT),
+ GridLayout.spec(iy, GridLayout.START),
GridLayout.spec(ix, GridLayout.TOP));
lp.width = cellWidth;
lp.height = cellHeight;
- lp.setGravity(Gravity.TOP | Gravity.LEFT);
+ lp.setGravity(Gravity.TOP | Gravity.START);
if (ix > 0) lp.leftMargin = mWidgetWidthGap;
if (iy > 0) lp.topMargin = mWidgetHeightGap;
layout.addView(widget, lp);