From c4fbc0ab05a08d4ac9350dc382aa665180f31d3c Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Thu, 6 Jul 2023 09:52:21 +0200 Subject: [PATCH] solve detekt warnings Signed-off-by: Marcel Hibbe --- app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index bdba29508..7594df22f 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -463,6 +463,7 @@ class ChatActivity : active = false } + @Suppress("LongMethod") private fun initObservers() { chatViewModel.getRoomViewState.observe(this) { state -> when (state) { @@ -1039,7 +1040,7 @@ class ChatActivity : } } - @Suppress("MagicNumber") + @Suppress("MagicNumber", "LongMethod") private fun updateTypingIndicator() { fun ellipsize(text: String): String { return DisplayUtils.ellipsize(text, TYPING_INDICATOR_MAX_NAME_LENGTH)