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

Commit 8931adcb authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary animation for an instant change" into main

parents 25dc927a ec20cf81
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@ import android.os.UserHandle;
import android.util.ArrayMap;
import android.view.SurfaceControl;
import android.view.WindowManager;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.window.TransitionInfo;
import android.window.TransitionMetrics;
@@ -835,9 +834,8 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
                a = mTransitionAnimation.loadVoiceActivityExitAnimation(enter, userId);
            }
        } else if (changeMode == TRANSIT_CHANGE) {
            // In the absence of a specific adapter, we just want to keep everything stationary.
            a = new AlphaAnimation(1.f, 1.f);
            a.setDuration(TransitionAnimation.DEFAULT_APP_TRANSITION_DURATION);
            // Apply end state directly by default.
            return null;
        } else if (type == TRANSIT_RELAUNCH) {
            a = mTransitionAnimation.createRelaunchAnimation(endBounds, mInsets, endBounds);
        } else if (overrideType == ANIM_CUSTOM