OSDN Git Service

Don't wait for visible if there is no running activity left.
authorChong Zhang <chz@google.com>
Wed, 27 Apr 2016 21:11:12 +0000 (14:11 -0700)
committerChong Zhang <chz@google.com>
Thu, 28 Apr 2016 01:28:29 +0000 (01:28 +0000)
commit824b6dcb55f6bc436d5aa8f461d5b269a4f5180b
tree5f0f2c2555f8441e55669413b701cd3638c82dd2
parent58a252d1f0048c8b4188f6ea87d072cb3a686a50
Don't wait for visible if there is no running activity left.

We could run into this situation on some devices (eg. clockworks),
the next activity doesn't get launched until we destroy this one.

allResumedActivitiesVisible() will return false if there is no other
activity running at all. Check top running activity and it's visibility
instead.

bug: 28400334
Change-Id: Ib8957e499580a10206fdd4e27da19fbc2bdb5843
services/core/java/com/android/server/am/ActivityStack.java