commit | 824b6dcb55f6bc436d5aa8f461d5b269a4f5180b | [log] [tgz] |
---|---|---|
author | Chong Zhang <chz@google.com> | Wed Apr 27 14:11:12 2016 -0700 |
committer | Chong Zhang <chz@google.com> | Thu Apr 28 01:28:29 2016 +0000 |
tree | 5f0f2c2555f8441e55669413b701cd3638c82dd2 | |
parent | 58a252d1f0048c8b4188f6ea87d072cb3a686a50 [diff] |
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