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

Commit 6d1697c9 authored by Nan Wu's avatar Nan Wu Committed by Android Build Coastguard Worker
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:71d67882398e9a28c268e19d5a5d66ff7632c4ed
Merged-In: I691b7746a8b413e956fdb75c7809904c70853552
Change-Id: I691b7746a8b413e956fdb75c7809904c70853552
parent 31e77d73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -126,7 +126,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 static final int SIZE_CHANGE_ANIMATION_DURATION = 400;

    private final TransactionPool mTransactionPool;