summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKerong Sui <ksui@codeaurora.org>2013-09-11 17:51:48 +0800
committerSteve Kondik <shade@chemlab.org>2013-10-01 03:32:39 -0700
commit529013a88e28dbf89f47626e7420de16b719231a (patch)
treed6eb2f36e1bb9e7dae65cd213503e530f10aef66
parent1bd22de1f4d21c59f0c8f4d7fd7a3b7d895ac0b1 (diff)
downloadandroid_packages_apps_Gallery2-529013a88e28dbf89f47626e7420de16b719231a.tar.gz
android_packages_apps_Gallery2-529013a88e28dbf89f47626e7420de16b719231a.tar.bz2
android_packages_apps_Gallery2-529013a88e28dbf89f47626e7420de16b719231a.zip
Gallery2: reduce the camera switch animation duration to 200ms
It is too long for the animation duration when switching from the back sensor to front or vice-versa which costs 400ms. Reduce it to 200ms to enhance the KPI. Change-Id: I0ef532aa88104de3ea0ea859b36f8d8cbf457194
-rw-r--r--src/com/android/camera/SwitchAnimManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/SwitchAnimManager.java b/src/com/android/camera/SwitchAnimManager.java
index 6ec88223e..9b0907fbb 100644
--- a/src/com/android/camera/SwitchAnimManager.java
+++ b/src/com/android/camera/SwitchAnimManager.java
@@ -33,7 +33,7 @@ public class SwitchAnimManager {
// The amount of change for zooming in and out.
private static final float ZOOM_DELTA_PREVIEW = 0.2f;
private static final float ZOOM_DELTA_REVIEW = 0.5f;
- private static final float ANIMATION_DURATION = 400; // ms
+ private static final float ANIMATION_DURATION = 200; // ms
public static final float INITIAL_DARKEN_ALPHA = 0.8f;
private long mAnimStartTime; // milliseconds.