allow saving contacts with empty account name

This commit is contained in:
tibbi
2018-01-29 23:39:41 +01:00
parent 719c1d6b73
commit 7664a09697
9 changed files with 3 additions and 15 deletions

View File

@ -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