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

Commit fbc8b715 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Null check on RecentsView for endLiveTile" into main

parents 4d95f79d 7cf1884d
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.