mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
allow saving contacts with empty account name
This commit is contained in:
@ -120,8 +120,8 @@ class EditContactActivity : SimpleActivity() {
|
||||
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)) {
|
||||
action == Intent.ACTION_VIEW ||
|
||||
action == Intent.ACTION_EDIT)) {
|
||||
val data = intent.data
|
||||
if (data != null) {
|
||||
val rawId = if (data.path.contains("lookup")) {
|
||||
@ -505,11 +505,6 @@ class EditContactActivity : SimpleActivity() {
|
||||
return
|
||||
}
|
||||
|
||||
if (contact_source.value.isEmpty()) {
|
||||
toast(R.string.missing_contact_account)
|
||||
return
|
||||
}
|
||||
|
||||
contact!!.apply {
|
||||
val oldPhotoUri = photoUri
|
||||
|
||||
|
Reference in New Issue
Block a user