OSDN Git Service

Snap a photo to the center after fling ends in filmstrip
authorBobby Georgescu <georgescu@google.com>
Fri, 21 Sep 2012 18:04:47 +0000 (11:04 -0700)
committerBobby Georgescu <georgescu@google.com>
Fri, 21 Sep 2012 18:04:47 +0000 (11:04 -0700)
Bug: 7050303
Change-Id: I7770d5642b376a1b888f34c5806f2291b64ecf68

src/com/android/gallery3d/ui/PositionController.java

index 434054d..15211bd 100644 (file)
@@ -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