summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2012-10-05 13:15:54 -0700
committerJohn Reck <jreck@google.com>2012-10-05 13:15:54 -0700
commit41a6aca3e0c6ef899f020673939d2a936d954fa1 (patch)
tree60565b2f21a52c753b85aa10062560609d67d18e
parent9fd6c3e2ef4dbe5d245404f24f1585bf358d2635 (diff)
downloadandroid_packages_apps_Snap-41a6aca3e0c6ef899f020673939d2a936d954fa1.tar.gz
android_packages_apps_Snap-41a6aca3e0c6ef899f020673939d2a936d954fa1.tar.bz2
android_packages_apps_Snap-41a6aca3e0c6ef899f020673939d2a936d954fa1.zip
Don't film strip animate when switching cameras
Bug: 7265781 Change-Id: Ibdef7d804923094f3b26471726a642a1b68e9540
-rw-r--r--src/com/android/gallery3d/ui/PositionController.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/gallery3d/ui/PositionController.java b/src/com/android/gallery3d/ui/PositionController.java
index 45b5ec6b3..fffa7e038 100644
--- a/src/com/android/gallery3d/ui/PositionController.java
+++ b/src/com/android/gallery3d/ui/PositionController.java
@@ -319,10 +319,10 @@ class PositionController {
b.mImageW = width;
b.mImageH = height;
- // If this is the first time we receive an image size, we change the
- // scale directly. Otherwise adjust the scales by a ratio, and snapback
- // will animate the scale into the min/max bounds if necessary.
- if (wasViewSize && !isViewSize) {
+ // If this is the first time we receive an image size or we are in fullscreen,
+ // we change the scale directly. Otherwise adjust the scales by a ratio,
+ // and snapback will animate the scale into the min/max bounds if necessary.
+ if ((wasViewSize && !isViewSize) || !mFilmMode) {
b.mCurrentScale = getMinimalScale(b);
b.mAnimationStartTime = NO_ANIMATION;
} else {