mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-18 13:16:15 +00:00
solve detekt warnings
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
c55539c50e
commit
c4fbc0ab05
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user