diff options
author | Bobby Georgescu <georgescu@google.com> | 2012-09-21 11:04:47 -0700 |
---|---|---|
committer | Bobby Georgescu <georgescu@google.com> | 2012-09-21 11:04:47 -0700 |
commit | 4ab4417fd1252df7ad3f8824fc133810090e2ec8 (patch) | |
tree | 27c61345f2eac03665bdd673e97701171bc7b286 | |
parent | 8e23dd070f2c49d64d356c22f55801c4f915de5c (diff) | |
download | android_packages_apps_Snap-4ab4417fd1252df7ad3f8824fc133810090e2ec8.tar.gz android_packages_apps_Snap-4ab4417fd1252df7ad3f8824fc133810090e2ec8.tar.bz2 android_packages_apps_Snap-4ab4417fd1252df7ad3f8824fc133810090e2ec8.zip |
Snap a photo to the center after fling ends in filmstrip
Bug: 7050303
Change-Id: I7770d5642b376a1b888f34c5806f2291b64ecf68
-rw-r--r-- | src/com/android/gallery3d/ui/PositionController.java | 4 |
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 |