diff options
author | Dianne Hackborn <hackbod@google.com> | 2014-08-27 16:44:24 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2014-08-28 11:38:13 -0700 |
commit | d7c9289f935992f4ae2fc032747f9e04bb86a7d0 (patch) | |
tree | b31b07270a4075e5a7827ba9751710170a4aeda3 /tests | |
parent | 19d431f330bf1d89c92c0971dad5fa8f5950b16d (diff) | |
download | frameworks_base-d7c9289f935992f4ae2fc032747f9e04bb86a7d0.zip frameworks_base-d7c9289f935992f4ae2fc032747f9e04bb86a7d0.tar.gz frameworks_base-d7c9289f935992f4ae2fc032747f9e04bb86a7d0.tar.bz2 |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java | 6 |
1 files changed, 1 insertions, 5 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 ea0db56..e03b9c8 100644 --- a/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java +++ b/tests/ActivityTests/src/com/google/android/test/activity/ActivityTestMain.java @@ -366,15 +366,11 @@ public class ActivityTestMain extends Activity { if (recent.id >= 0) { // Stack on top. intent.putExtra(DocActivity.LABEL, "Stacked"); - task.startActivity(ActivityTestMain.this, intent, null); } else { // Start root activity. - intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT - | Intent.FLAG_ACTIVITY_MULTIPLE_TASK - | Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS); intent.putExtra(DocActivity.LABEL, "New Root"); - task.startActivity(ActivityTestMain.this, intent, null); } + task.startActivity(ActivityTestMain.this, intent, null); } return true; } |