We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de864f3 commit 1cb0d1bCopy full SHA for 1cb0d1b
app/src/main/kotlin/com/simplemobiletools/contacts/activities/EditContactActivity.kt
@@ -149,7 +149,7 @@ class EditContactActivity : ContactActivity() {
149
}
150
151
if (contact!!.id == 0 && intent.extras?.containsKey(KEY_PHONE) == true && (action == Intent.ACTION_INSERT_OR_EDIT || action == Intent.ACTION_INSERT)) {
152
- val phoneNumber = intent.extras.get(KEY_PHONE).toString() ?: ""
+ val phoneNumber = intent.extras.get(KEY_PHONE)?.toString() ?: ""
153
contact!!.phoneNumbers.add(PhoneNumber(phoneNumber, DEFAULT_PHONE_NUMBER_TYPE))
154
setupPhoneNumbers()
155
0 commit comments