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

Commit bc9e8698 authored by Johannes Gallmann's avatar Johannes Gallmann
Browse files

Fix predictive back not working for screen cast dialog from lockscreen

Bug: 329869568
Flag: ACONFIG com.android.systemui.predictive_back_animate_dialogs TEAMFOOD
Test: Manual, i.e. testing predictive animation when launching screen cast dialog from lockscreen
Change-Id: I3bbae25a7e5e9a905fefaa6825986134b13353a6
parent 69a62d57
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ import com.android.systemui.statusbar.policy.CastController;
import com.android.systemui.statusbar.policy.CastController.CastDevice;
import com.android.systemui.statusbar.policy.HotspotController;
import com.android.systemui.statusbar.policy.KeyguardStateController;
import com.android.systemui.util.DialogKt;

import java.util.ArrayList;
import java.util.List;
@@ -245,6 +246,10 @@ public class CastTile extends QSTileImpl<BooleanState> {
                            new DialogCuj(InteractionJankMonitor.CUJ_SHADE_DIALOG_OPEN,
                                    INTERACTION_JANK_TAG));
                } else {
                    if (dialog.getWindow() != null) {
                        DialogKt.registerAnimationOnBackInvoked(dialog,
                                dialog.getWindow().getDecorView());
                    }
                    dialog.show();
                }
            });