summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaio Schnepper <caioschnepper@gmail.com>2015-05-01 15:43:18 -0300
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-05-04 18:36:20 +0000
commit073d9495b175da15abb9daab1c3c43bff494e719 (patch)
tree10b285e98af83cd85e82c09925bb5b64a4627747 /src
parente8e6a1162500667b34b609608ea1dbaaa9486d50 (diff)
downloadandroid_packages_apps_Gallery2-073d9495b175da15abb9daab1c3c43bff494e719.zip
android_packages_apps_Gallery2-073d9495b175da15abb9daab1c3c43bff494e719.tar.gz
android_packages_apps_Gallery2-073d9495b175da15abb9daab1c3c43bff494e719.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/ui/SlotView.java6
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 c9a1ff3..475d93a 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();