summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/PositionController.java
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
commit4ab4417fd1252df7ad3f8824fc133810090e2ec8 (patch)
tree27c61345f2eac03665bdd673e97701171bc7b286 /src/com/android/gallery3d/ui/PositionController.java
parent8e23dd070f2c49d64d356c22f55801c4f915de5c (diff)
downloadandroid_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
Diffstat (limited to 'src/com/android/gallery3d/ui/PositionController.java')
-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