OSDN Git Service

Add FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET Intent flag to each of
authorMegha Joshi <mjoshi@google.com>
Wed, 30 Sep 2009 04:49:35 +0000 (21:49 -0700)
committerMegha Joshi <mjoshi@google.com>
Wed, 30 Sep 2009 20:28:19 +0000 (13:28 -0700)
the intents launched from fasttrack window.

Fixes bug 2137624

src/com/android/contacts/ui/FastTrackWindow.java

index 25a0167..2f0d212 100644 (file)
@@ -675,6 +675,7 @@ public class FastTrackWindow implements Window.Callback,
                 // Otherwise fall back to default VIEW action
                 mIntent = new Intent(Intent.ACTION_VIEW, mDataUri);
             }
+           mIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
         }
 
         /** {@inheritDoc} */
@@ -759,7 +760,9 @@ public class FastTrackWindow implements Window.Callback,
         /** {@inheritDoc} */
         public Intent getIntent() {
             final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, mId);
-            return new Intent(Intent.ACTION_VIEW, contactUri);
+            final Intent intent = new Intent(Intent.ACTION_VIEW, contactUri);
+           intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+           return intent;
         }
 
         /** {@inheritDoc} */