From b8c3bdbbf61cc783c0cdc0a11cdb66ae846d2699 Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 21 May 2019 14:27:57 +0200 Subject: [PATCH] Cleaning --- .../main/java/im/vector/riotredesign/core/di/AppModule.kt | 2 +- .../home/room/detail/timeline/factory/MessageItemFactory.kt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/riotredesign/core/di/AppModule.kt b/vector/src/main/java/im/vector/riotredesign/core/di/AppModule.kt index 7fff020802..9505f80ef5 100644 --- a/vector/src/main/java/im/vector/riotredesign/core/di/AppModule.kt +++ b/vector/src/main/java/im/vector/riotredesign/core/di/AppModule.kt @@ -39,7 +39,7 @@ class AppModule(private val context: Context) { single { StringProvider(context.resources) } - + single { context.getSharedPreferences("im.vector.riot", MODE_PRIVATE) } diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/factory/MessageItemFactory.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/factory/MessageItemFactory.kt index 7a68937caf..1194142309 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/factory/MessageItemFactory.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/factory/MessageItemFactory.kt @@ -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)"