This commit is contained in:
Valere 2019-05-21 14:27:57 +02:00
parent d49007538b
commit b8c3bdbbf6
2 changed files with 5 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class AppModule(private val context: Context) {
single {
StringProvider(context.resources)
}
single {
context.getSharedPreferences("im.vector.riot", MODE_PRIVATE)
}

View file

@ -325,7 +325,10 @@ class MessageItemFactory(private val colorProvider: ColorProvider,
}
}
private fun annotateWithEdited(linkifiedBody: CharSequence, callback: TimelineEventController.Callback?, informationData: MessageInformationData, editSummary: EditAggregatedSummary?): SpannableStringBuilder {
private fun annotateWithEdited(linkifiedBody: CharSequence,
callback: TimelineEventController.Callback?,
informationData: MessageInformationData,
editSummary: EditAggregatedSummary?): SpannableStringBuilder {
val spannable = SpannableStringBuilder()
spannable.append(linkifiedBody)
val editedSuffix = "(edited)"