summaryrefslogtreecommitdiffstats
path: root/tests/ActivityTests
diff options
context:
space:
mode:
authorWale Ogunwale <ogunwale@google.com>2014-10-23 15:55:23 -0700
committerWale Ogunwale <ogunwale@google.com>2014-11-04 10:59:31 -0800
commitd54b578e47fb410c776bb3a4272c2c523153f657 (patch)
tree19e21c01839d987d47bb74725c3f055f59566b09 /tests/ActivityTests
parentfe91d4e6a2ef4e51910965ea258f91c14f5ee0dc (diff)
downloadframeworks_base-d54b578e47fb410c776bb3a4272c2c523153f657.zip
frameworks_base-d54b578e47fb410c776bb3a4272c2c523153f657.tar.gz
frameworks_base-d54b578e47fb410c776bb3a4272c2c523153f657.tar.bz2
Fix issue #17305377: Don't kill process if it still has tasks.
We previously killed a process when one of its task was swiped away in the recents UI. This had negative performance implications for apps with multiple tasks in recents. Now we will only kill the process if there are no more tasks associated with it. Changed also removes the need for the ActivityManager.REMOVE_TASK_KILL_PROCESS since ActivityManager will now only kill a task process if it process has no out standing tasks. Bug: 17305377 Change-Id: Ibc39bb328d13c7eab05c04798c2f14887923d9d4
Diffstat (limited to 'tests/ActivityTests')
-rw-r--r--tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java b/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java
index 6837d22..94874c8 100644
--- a/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java
+++ b/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java
@@ -127,7 +127,7 @@ public class ActivityTestMain extends Activity {
@Override
public boolean onLongClick(View v) {
if (task.id >= 0 && thumbs != null) {
- mAm.removeTask(task.id, ActivityManager.REMOVE_TASK_KILL_PROCESS);
+ mAm.removeTask(task.id);
buildUi();
return true;
}