mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
Merge pull request #1688 from oxen-io/fix/download-dialog-string
Fixing store crash by removing non required spannable
This commit is contained in:
commit
2945a9231b
@ -37,11 +37,7 @@ class DownloadDialog(private val recipient: Recipient) : DialogFragment() {
|
|||||||
val explanation = Phrase.from(context, R.string.attachmentsAutoDownloadModalDescription)
|
val explanation = Phrase.from(context, R.string.attachmentsAutoDownloadModalDescription)
|
||||||
.put(CONVERSATION_NAME_KEY, recipient.toShortString())
|
.put(CONVERSATION_NAME_KEY, recipient.toShortString())
|
||||||
.format()
|
.format()
|
||||||
val spannable = SpannableStringBuilder(explanation)
|
text(explanation)
|
||||||
|
|
||||||
val startIndex = explanation.indexOf(name)
|
|
||||||
spannable.setSpan(StyleSpan(Typeface.BOLD), startIndex, startIndex + name.count(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)
|
|
||||||
text(spannable)
|
|
||||||
|
|
||||||
button(R.string.download, R.string.AccessibilityId_download) { trust() }
|
button(R.string.download, R.string.AccessibilityId_download) { trust() }
|
||||||
cancelButton { dismiss() }
|
cancelButton { dismiss() }
|
||||||
|
Loading…
Reference in New Issue
Block a user