summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBobby Georgescu <georgescu@google.com>2012-09-21 11:04:47 -0700
committerBobby Georgescu <georgescu@google.com>2012-09-21 11:04:47 -0700
commit9b270f4f2e20fb0f0455529c2e20990173a75470 (patch)
treed4e9da3c363b2d5f951be66aadfd6bfa9fcbce7e /src
parent23e595f0c656ebaeb63f78e3018b5830628c5afe (diff)
downloadandroid_packages_apps_Gallery2-9b270f4f2e20fb0f0455529c2e20990173a75470.tar.gz
android_packages_apps_Gallery2-9b270f4f2e20fb0f0455529c2e20990173a75470.tar.bz2
android_packages_apps_Gallery2-9b270f4f2e20fb0f0455529c2e20990173a75470.zip
Snap a photo to the center after fling ends in filmstrip
Bug: 7050303 Change-Id: I7770d5642b376a1b888f34c5806f2291b64ecf68
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/ui/PositionController.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/ui/PositionController.java b/src/com/android/gallery3d/ui/PositionController.java
index 434054df0..15211bda7 100644
--- a/src/com/android/gallery3d/ui/PositionController.java
+++ b/src/com/android/gallery3d/ui/PositionController.java
@@ -1457,9 +1457,7 @@ class PositionController {
int x = mCurrentX;
int y = mDefaultY;
if (mFilmMode) {
- int defaultX = mDefaultX;
- if (!mHasNext) x = Math.max(x, defaultX);
- if (!mHasPrev) x = Math.min(x, defaultX);
+ x = mDefaultX;
} else {
calculateStableBound(scale, HORIZONTAL_SLACK);
// If the picture is zoomed-in, we want to keep the focus point