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

Commit 05dcfb04 authored by Winson Chung's avatar Winson Chung
Browse files

Clean up shell transition check in central surfaces

ENABLE_SHELL_TRANSITIONS is always true.

Bug: 365884835
Flag: EXEMPT remove outdated code
Test: atest SystemUITests
Change-Id: I981ae57510236f7f107664139161b3aa5137eb50
parent 4cb14e51
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();
        }