diff options
author | Caio Schnepper <caioschnepper@gmail.com> | 2015-05-01 15:43:18 -0300 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-05-04 18:36:20 +0000 |
commit | 073d9495b175da15abb9daab1c3c43bff494e719 (patch) | |
tree | 10b285e98af83cd85e82c09925bb5b64a4627747 | |
parent | e8e6a1162500667b34b609608ea1dbaaa9486d50 (diff) | |
download | android_packages_apps_Gallery2-073d9495b175da15abb9daab1c3c43bff494e719.tar.gz android_packages_apps_Gallery2-073d9495b175da15abb9daab1c3c43bff494e719.tar.bz2 android_packages_apps_Gallery2-073d9495b175da15abb9daab1c3c43bff494e719.zip |
Gallery2: Fix RTL album picking
The gallery picks the albums in inverted side while using RTL languages, this makes it correctly open the choosen album
Change-Id: I9e944731515514f00838c62b72900442461d4014
-rw-r--r-- | src/com/android/gallery3d/ui/SlotView.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/gallery3d/ui/SlotView.java b/src/com/android/gallery3d/ui/SlotView.java index c9a1ff303..475d93a67 100644 --- a/src/com/android/gallery3d/ui/SlotView.java +++ b/src/com/android/gallery3d/ui/SlotView.java @@ -625,12 +625,6 @@ public class SlotView extends GLView { public int getSlotIndexByPosition(float x, float y) { int absoluteX = Math.round(x) + (mIsWide ? mScrollPosition : 0); int absoluteY = Math.round(y) + (mIsWide ? 0 : mScrollPosition); - if (View.LAYOUT_DIRECTION_RTL == TextUtils - .getLayoutDirectionFromLocale(Locale.getDefault())) { - // If RTL, recalculate the absoluteX. - absoluteX = mContentLength > mWidth ? (mContentLength - absoluteX) : mWidth - - absoluteX; - } absoluteX -= mHorizontalPadding.get(); absoluteY -= mVerticalPadding.get(); |