summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/TimeLineSlotView.java
diff options
context:
space:
mode:
authorshenfe <shenfe@codeaurora.org>2016-11-11 15:01:14 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-11 00:05:51 -0800
commitd4e21e9bc08ed56ee687a4382c99c4c1b6b4e51f (patch)
treece45e90a25bbfed9f05d7eecaf4f2d8364979200 /src/com/android/gallery3d/ui/TimeLineSlotView.java
parentce811fd8429a318b341d78bc137172b5981e0b67 (diff)
downloadandroid_packages_apps_Gallery2-d4e21e9bc08ed56ee687a4382c99c4c1b6b4e51f.tar.gz
android_packages_apps_Gallery2-d4e21e9bc08ed56ee687a4382c99c4c1b6b4e51f.tar.bz2
android_packages_apps_Gallery2-d4e21e9bc08ed56ee687a4382c99c4c1b6b4e51f.zip
SnapdragonGallery: Fix select picture error when RTL.
Delete the surplus compute about col. Change-Id: I303e60aab0aac61e32b43d50924430ec9d7ef09c CRs-Fixed: 1087616
Diffstat (limited to 'src/com/android/gallery3d/ui/TimeLineSlotView.java')
-rwxr-xr-xsrc/com/android/gallery3d/ui/TimeLineSlotView.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/ui/TimeLineSlotView.java b/src/com/android/gallery3d/ui/TimeLineSlotView.java
index 7dcf4ef5f..2a088c208 100755
--- a/src/com/android/gallery3d/ui/TimeLineSlotView.java
+++ b/src/com/android/gallery3d/ui/TimeLineSlotView.java
@@ -658,10 +658,6 @@ public class TimeLineSlotView extends GLView {
}
if (!rowStart) {
col = ((int) x) / (mSlotWidth + mSlotGap);
- if (TextUtils.getLayoutDirectionFromLocale(Locale.getDefault())
- == View.LAYOUT_DIRECTION_RTL) {
- col = mUnitCount - col;
- }
if (row * mUnitCount + col >= count) {
break;
}