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

Commit 7cf1884d authored by Tracy Zhou's avatar Tracy Zhou
Browse files

Null check on RecentsView for endLiveTile

Fixes: 304914019
manual: N/A
Change-Id: I6c6e3f0f52e57589f71b3c63debac21734fc88bf
parent 21c49582
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -190,10 +190,12 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
         */
        public void endLiveTileMode(@NonNull Runnable callback) {
            RecentsView recentsView = mThumbnailView.getTaskView().getRecentsView();
            if (recentsView != null) {
                recentsView.switchToScreenshot(
                        () -> recentsView.finishRecentsAnimation(true /* toRecents */,
                                false /* shouldPip */, callback));
            }
        }

        /**
         * Called to save screenshot of the task thumbnail.