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

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

Merge "Clean up shell transition check in central surfaces" into main

parents ac3deb96 05dcfb04
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -16,8 +16,6 @@

package com.android.systemui.statusbar.phone;

import static com.android.wm.shell.transition.Transitions.ENABLE_SHELL_TRANSITIONS;

import android.annotation.Nullable;
import android.app.ActivityOptions;
import android.content.Context;
@@ -146,14 +144,10 @@ public interface CentralSurfaces extends Dumpable, LifecycleOwner, CoreStartable
            @Nullable RemoteAnimationAdapter animationAdapter) {
        ActivityOptions options;
        if (animationAdapter != null) {
            if (ENABLE_SHELL_TRANSITIONS) {
            options = ActivityOptions.makeRemoteTransition(
                    new RemoteTransition(
                            RemoteAnimationRunnerCompat.wrap(animationAdapter.getRunner()),
                            animationAdapter.getCallingApplication(), "SysUILaunch"));
            } else {
                options = ActivityOptions.makeRemoteAnimation(animationAdapter);
            }
        } else {
            options = ActivityOptions.makeBasic();
        }