From 17df03ce167eab04f51bf6f67d7f8085ac8ae10d Mon Sep 17 00:00:00 2001 From: Chih-Chung Chang Date: Fri, 11 May 2012 17:55:02 +0800 Subject: Show gray tile for screennails not loaded yet. Bug: 6452217 Change-Id: Ied9c2e2c91f4ffe218a73ba1a123df92a2aab98a --- src/com/android/gallery3d/ui/PositionController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/com/android/gallery3d/ui/PositionController.java') 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 -- cgit v1.2.3