diff options
author | Danny Lin <danny@kdrag0n.dev> | 2020-09-19 21:22:28 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | d0315a100cff255cbbe4efccca84ce401f40a5dc (patch) | |
tree | 5dcfc65ba8d41ac63b38e7e0ef72a10a87d98e6d | |
parent | 11c1460942d1b55c8fba3bd9b557bf24f4e8e2a7 (diff) |
[ProtonAOSP][rvc] GlobalScreenshot: Reduce screenshot dismiss delay to 3 seconds
2 seconds is more than enough for most cases. Keeping the overlay around
for too long forces the user to dismiss it manually, which is a
regression compared to the old screenshot notification UI.
Change-Id: I5644a055d1285d390d77430670fd6f43862c9608
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java index abd2d42f7533..eec28e2fac6f 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java @@ -187,7 +187,7 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset private static final long SCREENSHOT_DISMISS_ALPHA_OFFSET_MS = 50; // delay before starting fade private static final float SCREENSHOT_ACTIONS_START_SCALE_X = .7f; private static final float ROUNDED_CORNER_RADIUS = .05f; - private static final int SCREENSHOT_CORNER_DEFAULT_TIMEOUT_MILLIS = 6000; + private static final int SCREENSHOT_CORNER_DEFAULT_TIMEOUT_MILLIS = 3000; private static final int MESSAGE_CORNER_TIMEOUT = 2; private final Interpolator mAccelerateInterpolator = new AccelerateInterpolator(); |