diff options
author | Chih-Chung Chang <chihchung@google.com> | 2012-05-11 17:55:02 +0800 |
---|---|---|
committer | Chih-Chung Chang <chihchung@google.com> | 2012-05-17 15:34:28 -0700 |
commit | 17df03ce167eab04f51bf6f67d7f8085ac8ae10d (patch) | |
tree | 6343eeb9aa5d85b397ee9e0c3ff2d3a09d3a03a8 /src/com/android/gallery3d/ui/PositionController.java | |
parent | 931a10095f72a0334ac5ab5da174e646cb5bacf9 (diff) | |
download | android_packages_apps_Snap-17df03ce167eab04f51bf6f67d7f8085ac8ae10d.tar.gz android_packages_apps_Snap-17df03ce167eab04f51bf6f67d7f8085ac8ae10d.tar.bz2 android_packages_apps_Snap-17df03ce167eab04f51bf6f67d7f8085ac8ae10d.zip |
Show gray tile for screennails not loaded yet.
Bug: 6452217
Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a
Diffstat (limited to 'src/com/android/gallery3d/ui/PositionController.java')
-rw-r--r-- | src/com/android/gallery3d/ui/PositionController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/ui/PositionController.java b/src/com/android/gallery3d/ui/PositionController.java index 9797ce903..226826da7 100644 --- a/src/com/android/gallery3d/ui/PositionController.java +++ b/src/com/android/gallery3d/ui/PositionController.java @@ -34,6 +34,8 @@ class PositionController { public static final int IMAGE_AT_TOP_EDGE = 4; public static final int IMAGE_AT_BOTTOM_EDGE = 8; + public static final int CAPTURE_ANIMATION_TIME = 600; + // Special values for animation time. private static final long NO_ANIMATION = -1; private static final long LAST_ANIMATION = -2; @@ -56,7 +58,7 @@ class PositionController { 300, // ANIM_KIND_ZOOM 400, // ANIM_KIND_OPENING 0, // ANIM_KIND_FLING (the duration is calculated dynamically) - 800, // ANIM_KIND_CAPTURE + CAPTURE_ANIMATION_TIME, // ANIM_KIND_CAPTURE }; // We try to scale up the image to fill the screen. But in order not to |