From 52c5c76bddbf3994867a00d0e266b390592486aa Mon Sep 17 00:00:00 2001 From: Angus Kong Date: Fri, 14 Oct 2011 17:11:12 +0800 Subject: Add "Intent.FLAG_ACTIVITY_CLEAR_TOP" flag in test. The "Intent.FLAG_ACTIVITY_CLEAR_TOP" should be added in the intent for switching modes. This flag ensures there is only 1 instance of the same activity. This behavior is the same as how we do in the app. bug:5336037 Change-Id: Ie76b43cbd87ff9e8a7ec9e0a892930834dccf9cf --- tests/src/com/android/camera/stress/SwitchPreview.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/src/com/android/camera/stress/SwitchPreview.java b/tests/src/com/android/camera/stress/SwitchPreview.java index 6af915e..c5dd7c1 100755 --- a/tests/src/com/android/camera/stress/SwitchPreview.java +++ b/tests/src/com/android/camera/stress/SwitchPreview.java @@ -97,10 +97,13 @@ public class SwitchPreview extends ActivityInstrumentationTestCase2