OSDN Git Service

Don't finish noHistory="true" activities behind the lock screen
authorChristopher Tate <ctate@google.com>
Thu, 14 Jun 2012 21:16:54 +0000 (14:16 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 14 Jun 2012 23:51:58 +0000 (16:51 -0700)
commitd3f175c8179e8fbb275a5ef53b5a6fc4d88c1f24
tree84d92cee67f8235752a549aa336e4282f1d812c6
parenta676cdab11ace948a054b5ca342727a3d0eb29b2
Don't finish noHistory="true" activities behind the lock screen

The foreground activity is stopped when the device goes to sleep,
and started again when the device is unlocked.  We now distinguish
this case from a "normal" stop, and do not finish() a foreground
noHistory="true" activity inappropriately when the device sleeps.
We also detect the case where an activity is started while the
device is still asleep, in which case the foreground noHistory
activity is cleaned up as part of bringing the new activity to
the foreground.

Bug 6657549

Change-Id: I9c6a0830aed0e47e4207b62803b90067c8486112
services/java/com/android/server/am/ActivityStack.java