Move to final position after view size change.

Bug: 6584188
Change-Id: If6ab23532bd7040701e358f9cdd813d2f6a71e5c
diff --git a/src/com/android/gallery3d/ui/PositionController.java b/src/com/android/gallery3d/ui/PositionController.java
index cf41d3a..ae0df34 100644
--- a/src/com/android/gallery3d/ui/PositionController.java
+++ b/src/com/android/gallery3d/ui/PositionController.java
@@ -213,8 +213,7 @@
         // If we have the opening animation, do it. Otherwise go directly to the
         // right position.
         if (!startOpeningAnimationIfNeeded()) {
-            snapAndRedraw();
-            skipAnimation();
+            skipToFinalPosition();
         }
     }
 
@@ -421,6 +420,12 @@
         snapAndRedraw();
     }
 
+    public void skipToFinalPosition() {
+        stopAnimation();
+        snapAndRedraw();
+        skipAnimation();
+    }
+
     ////////////////////////////////////////////////////////////////////////////
     //  Start an animations for the focused box
     ////////////////////////////////////////////////////////////////////////////