OSDN Git Service

Also add starting window when activity is not alive
authorJorim Jaggi <jjaggi@google.com>
Sun, 14 May 2017 22:05:54 +0000 (00:05 +0200)
committerJorim Jaggi <jjaggi@google.com>
Tue, 16 May 2017 14:10:27 +0000 (16:10 +0200)
commit70aa4d18be4865ef28795aa9e78f6b36ac437d8a
tree2751fbb7bb01368dc92433ba9caec8d1f90c5ed6
parent5afccc62517a5c9ba44ed7671f130230297af83b
Also add starting window when activity is not alive

The fact whether the process is running or not is not necessarily
a reason to not show a starting window. Sometimes the process with
an activity gets killed, but later gets restarted because of some
broadcast or service without recreating the activity. In this
case, we still need a splash screen to hide the recreation delay,
which is usually as expensive as if the process is not running.

Test: Open Calendar, kill `pid calendar`, reopen it, make sure
starting window is shown.
Test: As above but with a couple of other apps - with and widhout
trampoline activities.
Test: Boot freshly and open a couple of apps from recents

Change-Id: I8c4f928fca77b5446cab55c89bc69adbaaaa8da3
Fixes: 37951698
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/wm/AppWindowContainerController.java
services/tests/servicestests/src/com/android/server/wm/AppWindowContainerControllerTests.java