OSDN Git Service

Ensure to resume home if there is no other activity
authorRiddle Hsu <riddlehsu@google.com>
Wed, 24 Apr 2019 15:55:11 +0000 (23:55 +0800)
committerRiddle Hsu <riddlehsu@google.com>
Thu, 25 Apr 2019 07:58:45 +0000 (07:58 +0000)
commit2b9a6d7c6a26c4506631e3569e8fe0457ef47927
tree27683e5beeb7862893c93fab5d8159bd35f95afd
parentbd873544af972cd1e425039a3579b6b2d7b01b79
Ensure to resume home if there is no other activity

On default display, there will always have home stack,
but home activity may not have been started yet. In that
case if we want to resume home, the home stack should
still move to front.

Fix: 118862669
Test: atest ActivityStackTests#testAdjustFocusedStackToHomeWhenNoActivity
Change-Id: I3c744f6d3adeb151eac864d88d2b195e05d2332f
services/core/java/com/android/server/wm/ActivityDisplay.java
services/tests/wmtests/src/com/android/server/wm/ActivityStackTests.java