1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 22:45:04 -05:00

Use FLAG_ACTIVITY_NEW_TASK when starting activity

for SHOW_OR_CREATE_CONTACT.
This commit is contained in:
cketti 2011-02-25 19:15:13 +01:00
parent 32d03d7cbf
commit daf92a7b95
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ public class ContactsSdk3_4 extends com.fsck.k9.helper.Contacts {
final Uri contactUri = Uri.fromParts("mailto", email.getAddress(), null); final Uri contactUri = Uri.fromParts("mailto", email.getAddress(), null);
final Intent contactIntent = new Intent(Contacts.Intents.SHOW_OR_CREATE_CONTACT); final Intent contactIntent = new Intent(Contacts.Intents.SHOW_OR_CREATE_CONTACT);
contactIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
contactIntent.setData(contactUri); contactIntent.setData(contactUri);
// Pass along full E-mail string for possible create dialog // Pass along full E-mail string for possible create dialog

View File

@ -69,6 +69,7 @@ public class ContactsSdk5 extends com.fsck.k9.helper.Contacts {
final Uri contactUri = Uri.fromParts("mailto", email.getAddress(), null); final Uri contactUri = Uri.fromParts("mailto", email.getAddress(), null);
final Intent contactIntent = new Intent(Intents.SHOW_OR_CREATE_CONTACT); final Intent contactIntent = new Intent(Intents.SHOW_OR_CREATE_CONTACT);
contactIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
contactIntent.setData(contactUri); contactIntent.setData(contactUri);
// Pass along full E-mail string for possible create dialog // Pass along full E-mail string for possible create dialog