Minor code cleanup

This commit is contained in:
Juha Heinanen
2022-02-18 10:11:22 +02:00
parent 9ff543fd6d
commit 7d943362c6
3 changed files with 11 additions and 15 deletions
@@ -494,16 +494,4 @@ class ContactActivity : AppCompatActivity() {
}
}
companion object {
var contact: Contact? = null
fun deleteAndroidContact(ctx: Context, name: String): Int {
return ctx.contentResolver.delete(ContactsContract.RawContacts.CONTENT_URI,
ContactsContract.Contacts.DISPLAY_NAME + "='" + name + "'",
null)
}
}
}