From 5b514d5b9235f18eb52f663e32c6f42ceb977f35 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 11 Dec 2017 21:05:46 +0100 Subject: [PATCH] create a new Contact at pressing FAB --- .../com/simplemobiletools/contacts/activities/ContactActivity.kt | 1 + 1 file changed, 1 insertion(+) 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 11d2832f..b6ada840 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ContactActivity.kt @@ -133,6 +133,7 @@ class ContactActivity : SimpleActivity() { private fun setupNewContact() { window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE) supportActionBar?.title = resources.getString(R.string.new_contact) + contact = Contact(0, "", "", "", "") } private fun applyPhotoPlaceholder() {