Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5b3eb1f authored by Nan Wu's avatar Nan Wu Committed by Nishith Khanna
Browse files

RESTRICT AUTOMERGE: Backport Cut max duration for default transition to 1500

3 seconds is way too long, especially for tap jacking exploitation during animation. Cut it down to 1500 for a more tolerable experience.

Bug: 266433089
Test: manual
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:1d37fc960d93d216e151d74662ccc5d53fd68978
Merged-In: I597e43434a6372299ee33618704042e2c583a2c3
Change-Id: I597e43434a6372299ee33618704042e2c583a2c3
parent 1a3ce083
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ import java.util.function.Consumer;

/** The default handler that handles anything not already handled. */
public class DefaultTransitionHandler implements Transitions.TransitionHandler {
    private static final int MAX_ANIMATION_DURATION = 3000;
    private static final int MAX_ANIMATION_DURATION = 1500;

    private final TransactionPool mTransactionPool;
    private final DisplayController mDisplayController;