OSDN Git Service

Force to stop scrolling in filmstrip mode.
authorAngus Kong <shkong@google.com>
Thu, 24 May 2012 23:20:57 +0000 (16:20 -0700)
committerAngus Kong <shkong@google.com>
Thu, 24 May 2012 23:45:31 +0000 (16:45 -0700)
bug:6554106
Change-Id: I4305ce7068a36e72a325996a88c1d227a2d2b20c

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

index d085c4d..db77b99 100644 (file)
@@ -1060,6 +1060,7 @@ class PositionController {
 
     public void stopScrolling() {
         if (mPlatform.mAnimationStartTime == NO_ANIMATION) return;
+        if (mFilmMode) mFilmScroller.forceFinished(true);
         mPlatform.mFromX = mPlatform.mToX = mPlatform.mCurrentX;
     }