Remove FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET

Reasons

1) Now that QC is no longer a modal dialog, it doesn't make sense for
to use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET. We want QC to stick around
inside the back stack.

2) FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET is deprecated. It now behaves
completely differently than it used to. It now acts the same as
FLAG_ACTIVITY_NEW_DOCUMENT.

Bug: 15693551
Change-Id: Ia22fe04d7a91876061498bf1f098755b54199704
This commit is contained in:
Brian Attwell
2014-06-17 14:12:22 -07:00
parent e75b2c2677
commit 2aa1549f4d

View File

@@ -7963,8 +7963,7 @@ public final class ContactsContract {
actualContext = ((ContextWrapper) actualContext).getBaseContext();
}
final int intentFlags = (actualContext instanceof Activity)
? Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
: Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK;
? 0 : Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK;
// Launch pivot dialog through intent for now
final Intent intent = new Intent(ACTION_QUICK_CONTACT).addFlags(intentFlags);