summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 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();