OSDN Git Service

Fix issue #17289876: startActivityFromRecents appears to launch the wrong task
authorDianne Hackborn <hackbod@google.com>
Wed, 27 Aug 2014 23:44:24 +0000 (16:44 -0700)
committerDianne Hackborn <hackbod@google.com>
Thu, 28 Aug 2014 18:38:13 +0000 (11:38 -0700)
commitd7c9289f935992f4ae2fc032747f9e04bb86a7d0
treeb31b07270a4075e5a7827ba9751710170a4aeda3
parent19d431f330bf1d89c92c0971dad5fa8f5950b16d
Fix issue #17289876: startActivityFromRecents appears to launch the wrong task

It would be good to actually bring the task to the front.

Also, make the flow when inTask is provided better match what happens when
we go looking for a task on our own.

And this includes another fix that was supposed to be part of a different
change but I forgot this class is part of the framework project now.

Change-Id: I3cf05f2e585c0fd7a0dbb7c7cf9fb1655764dd93
core/java/com/android/internal/os/BatteryStatsHelper.java
services/core/java/com/android/server/am/ActivityStackSupervisor.java
tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java