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

Commit 6a01ab32 authored by Nan Wu's avatar Nan Wu Committed by Bruno Martins
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 bug fix
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:1e9412266ede59c046b83ad3a3fbfcaba94a1787
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:8740d28bfeb63dd021b390a8c7a7c7a6f25c362c
Merged-In: I3b33e47743fc2dee93cb3cb6363626698868beae
Change-Id: I3b33e47743fc2dee93cb3cb6363626698868beae
parent 5ba63bf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,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;