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

Commit e9c7d8e9 authored by Kevin's avatar Kevin Committed by android-build-merger
Browse files

Merge "Fix legacy recents crash on Go devices" into qt-dev am: 92f755e3

am: e66be84a

Change-Id: I2f053f5d0be98636ce511e3f7f0ecb8fb4c8e6d3
parents ab6e6b4e e66be84a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -662,11 +662,17 @@ public class LegacyRecentsImpl implements RecentsImplementation {

    public final void onBusEvent(ExpandPipEvent event) {
        PipUI pipUi = getComponent(PipUI.class);
        if (pipUi == null) {
            return;
        }
        pipUi.expandPip();
    }

    public final void onBusEvent(HidePipMenuEvent event) {
        PipUI pipUi = getComponent(PipUI.class);
        if (pipUi == null) {
            return;
        }
        event.getAnimationTrigger().increment();
        pipUi.hidePipMenu(() -> {
                event.getAnimationTrigger().increment();