mirror of
https://github.com/thunderbird/thunderbird-android.git
synced 2024-09-20 12:12:15 +02:00
Use null
instead of blank values when saving identity fields
This commit is contained in:
parent
7819bb79c0
commit
d30c48c373
@ -104,12 +104,12 @@ class EditIdentity : K9Activity() {
|
||||
|
||||
private fun saveIdentity() {
|
||||
identity = identity.copy(
|
||||
description = description.text.toString(),
|
||||
description = description.text.toString().takeUnless { it.isBlank() },
|
||||
email = email.text.toString(),
|
||||
name = name.text.toString(),
|
||||
name = name.text.toString().takeUnless { it.isBlank() },
|
||||
signatureUse = signatureUse.isChecked,
|
||||
signature = signature.text.toString(),
|
||||
replyTo = if (replyTo.text.isNotEmpty()) replyTo.text.toString() else null,
|
||||
replyTo = replyTo.text.toString().takeUnless { it.isBlank() },
|
||||
)
|
||||
|
||||
val identities = account.identities
|
||||
|
Loading…
Reference in New Issue
Block a user