OSDN Git Service

Don't switch back to fullscreen camera when flinging
authorBobby Georgescu <georgescu@google.com>
Mon, 17 Sep 2012 21:30:46 +0000 (14:30 -0700)
committerBobby Georgescu <georgescu@google.com>
Mon, 17 Sep 2012 22:14:48 +0000 (15:14 -0700)
Bug: 7145903
Bug: 7050303
It was very annoying to users to fling in the filmstrip
and end up in the fullscreen camera mode, so disabling
that. Long-term, we want to be smarter about this and
do the zoom to the full-screen if it's a short swipe
rather than a fling.

Change-Id: I40ac4848a267c06fc41e161a7a292b8f03b2ef4c

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

index 68dc152..c47bccc 100644 (file)
@@ -635,9 +635,13 @@ public class PhotoView extends GLView {
             } else if (isCenter && mNeedToChangeToFilmstripWhenCentered) {
                 setFilmMode(true);
                 mNeedToChangeToFilmstripWhenCentered = false;
-            } else if (!mWasCameraCenter && isCameraCenter && mFilmMode) {
+            }
+            /*
+            TODO: Come out of film mode if it was a short swipe rather than a fling
+            else if (!mWasCameraCenter && isCameraCenter && mFilmMode) {
                 setFilmMode(false);
             }
+            */
 
             if (isCameraCenter && !mFilmMode) {
                 // Move into camera in page mode, lock