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

Commit 848e575f 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.

DISABLE_TOPIC_PROTECTOR

Bug: 266433089
Test: manual
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:62fa823a32cbc9fe7e3fe19a90112a5676ac7b9e
Merged-In: I5afd5c942b8f96347398a9b0aaafda28dc83d789
Change-Id: I5afd5c942b8f96347398a9b0aaafda28dc83d789
parent f54544f8
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;