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

Commit 181d85d8 authored by Riddle Hsu's avatar Riddle Hsu Committed by Automerger Merge Worker
Browse files

Merge "Preempt recents animation if display is changed" into udc-dev am: fe69fc42 am: 8b3cb4cf

parents 0cd902a9 8b3cb4cf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -246,6 +246,13 @@ public class RemoteTransitionCompat {
                        closingTasks.add(change);
                    }
                } else if (change.getMode() == TRANSIT_CHANGE) {
                    // Finish recents animation if the display is changed, so the default
                    // transition handler can play the animation such as rotation effect.
                    if (change.hasFlags(TransitionInfo.FLAG_IS_DISPLAY)) {
                        mListener.onSwitchToScreenshot(() -> finish(false /* toHome */,
                                false /* userLeaveHint */));
                        return false;
                    }
                    hasChangingApp = true;
                }
            }