summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-10-05 21:01:12 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-01-26 11:42:56 +0800
commit2b27897191f5188054329737bf4f37c2a832cb2b (patch)
tree32f09f2939841ac14ce62d27942c0fa10f1141d8
parent9f4f6485232177cc064e0f3ef324e152df615d42 (diff)
SystemUI: Reduce scrim color animation duration to 375 ms
The 2-second scrim color animation is far too long in contrast to the dark theme QS tile's state animation, and it's long enough to be something that users have to wait and watch. Reduce the duration to 375 ms, following Launcher3's activity theme cross-fade duration, which is much more reasonable. Change-Id: Id74e3d266f2cdc14d0f5c87f7650d5be730cdb67
-rw-r--r--packages/SystemUI/src/com/android/systemui/scrim/ScrimDrawable.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/scrim/ScrimDrawable.java b/packages/SystemUI/src/com/android/systemui/scrim/ScrimDrawable.java
index 3c6ab34733e5..20deddb4379e 100644
--- a/packages/SystemUI/src/com/android/systemui/scrim/ScrimDrawable.java
+++ b/packages/SystemUI/src/com/android/systemui/scrim/ScrimDrawable.java
@@ -39,7 +39,7 @@ import com.android.internal.graphics.ColorUtils;
*/
public class ScrimDrawable extends Drawable {
private static final String TAG = "ScrimDrawable";
- private static final long COLOR_ANIMATION_DURATION = 2000;
+ private static final long COLOR_ANIMATION_DURATION = 375;
private final Paint mPaint;
private int mAlpha = 255;