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

Commit 0eab8c5e authored by Wei Sheng Shih's avatar Wei Sheng Shih Committed by Android (Google) Code Review
Browse files

Merge "Replace forAllWindows(hasWallpaper) to hasWallpaper." into main

parents f9cf79a5 5374d861
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -303,8 +303,7 @@ class BackNavigationController {
                    removedWindowContainer = currentTask;
                    backType = BackNavigationInfo.TYPE_RETURN_TO_HOME;
                    final ActivityRecord ar = prevTask.getTopNonFinishingActivity();
                    mShowWallpaper =
                            ar != null && ar.forAllWindows(WindowState::hasWallpaper, true);
                    mShowWallpaper = ar != null && ar.hasWallpaper();
                } else {
                    // If it reaches the top activity, we will check the below task from parent.
                    // If it's null or multi-window and has different parent task, fallback the type