mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
handle View intents with the new ViewContactActivity
This commit is contained in:
@ -6,7 +6,6 @@ import android.content.Intent
|
||||
import android.graphics.drawable.ColorDrawable
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.provider.ContactsContract
|
||||
import android.provider.ContactsContract.CommonDataKinds
|
||||
import android.provider.MediaStore
|
||||
import android.view.Menu
|
||||
@ -104,9 +103,7 @@ class EditContactActivity : ContactActivity() {
|
||||
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 ||
|
||||
action == Intent.ACTION_EDIT)) {
|
||||
if (contactId == 0 && action == Intent.ACTION_EDIT) {
|
||||
val data = intent.data
|
||||
if (data != null) {
|
||||
val rawId = if (data.path.contains("lookup")) {
|
||||
|
Reference in New Issue
Block a user