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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user