From 8410ef57b9dddfe839c62b5b4bff7c93f2d48809 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Jan 2018 15:01:43 +0100 Subject: [PATCH] properly handle ACTION_EDIT intent too --- .../simplemobiletools/contacts/activities/ContactActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ContactActivity.kt index 73251fd9..61243300 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ContactActivity.kt @@ -96,7 +96,9 @@ class ContactActivity : SimpleActivity() { private fun initContact() { var contactId = intent.getIntExtra(CONTACT_ID, 0) val action = intent.action - if (contactId == 0 && (action == ContactsContract.QuickContact.ACTION_QUICK_CONTACT || action == Intent.ACTION_VIEW)) { + if (contactId == 0 && (action == ContactsContract.QuickContact.ACTION_QUICK_CONTACT || + action == Intent.ACTION_VIEW || + action == Intent.ACTION_EDIT)) { val data = intent.data if (data != null) { val rawId = if (data.path.contains("lookup")) {