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

Commit fcf25e08 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Start home activity if focusable task is not available" into rvc-dev

parents 32d86411 7baffbb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2265,8 +2265,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
                final ActivityStack focusedStack = display.getFocusedStack();
                if (focusedStack != null) {
                    result |= focusedStack.resumeTopActivityUncheckedLocked(target, targetOptions);
                } else if (targetStack == null && display.getStackCount() == 0) {
                    result |= resumeHomeActivity(null /* prev */, "empty-display",
                } else if (targetStack == null) {
                    result |= resumeHomeActivity(null /* prev */, "no-focusable-task",
                            display.mDisplayId);
                }
            }