OSDN Git Service

Fix a regression in pausing activity immediately on sleep
authorAmith Yamasani <yamasani@google.com>
Thu, 19 Sep 2013 19:30:32 +0000 (12:30 -0700)
committerThe Android Automerger <android-build@android.com>
Fri, 20 Sep 2013 10:36:46 +0000 (03:36 -0700)
commitc2de961259b5fcc8ddf7ce55d69c7b25e896fc53
tree95186187020ccf3404be2a5a8641cb5620071946
parent8c60f33cb7e08b8af7394a01ee3b495cfb699440
Fix a regression in pausing activity immediately on sleep

At some point during refactoring of ActivityStack, the code to pause the current
activity got deleted. Added back that line of code. Activity will now pause
as soon as the screen is turned off, rather than after 5 seconds (sleep timeout).

Bug: 10632898

Change-Id: If3cc8708d692d29a13dbd8cfd9edda8883b38c2e
services/java/com/android/server/am/ActivityStackSupervisor.java