From 4ab4417fd1252df7ad3f8824fc133810090e2ec8 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Fri, 21 Sep 2012 11:04:47 -0700 Subject: Snap a photo to the center after fling ends in filmstrip Bug: 7050303 Change-Id: I7770d5642b376a1b888f34c5806f2291b64ecf68 --- src/com/android/gallery3d/ui/PositionController.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/com/android/gallery3d/ui/PositionController.java') 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 -- cgit v1.2.3