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

Commit 5374d861 authored by wilsonshih's avatar wilsonshih
Browse files

Replace forAllWindows(hasWallpaper) to hasWallpaper.

Since we have the method.

Bug: 336149696
Test: presubmit.
Change-Id: I375724dea90e94a0bf07e106110c7f849fa75b35
parent c929dc6e
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