OSDN Git Service

Fix stopping activity when removed from waiting visible
authorAndrii Kulian <akulian@google.com>
Wed, 21 Sep 2016 22:34:45 +0000 (15:34 -0700)
committerAndrii Kulian <akulian@google.com>
Thu, 22 Sep 2016 00:17:43 +0000 (00:17 +0000)
commitee05681139f2eb5a9994d7294441d694a309407f
treeef6c41b87b9f27a39b47eec87494fcc4caeefa04
parentc78afedc913cc1004624c82cad2e55955d1646fe
Fix stopping activity when removed from waiting visible

During refactoring in ag/613666 waitingVisible flag clearing
was mistakenly removed. It was added back in ag/1221328 but
only for activities that are finishing.
This caused activity not being stopped in some cases when
window visibility change was handled before receiving idle
callback from client. This is easily reproducible when there
is a scene transition animation specified.

Bug: 31078584
Change-Id: Ic09c5199ad4fceae0607e4bcce02be5335c8870b
services/core/java/com/android/server/am/ActivityStackSupervisor.java