mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 13:35:33 +03:00
Catch IllegalStateException in case EmojiCompat hasn't been initialized yet
Fixes #1371 Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
f9449db82a
commit
3514d6b3fc
1 changed files with 5 additions and 1 deletions
|
@ -1270,7 +1270,11 @@ class ChatController(args: Bundle) :
|
|||
override val title: String
|
||||
get() =
|
||||
if (currentConversation?.displayName != null) {
|
||||
" " + EmojiCompat.get().process(currentConversation?.displayName as CharSequence).toString()
|
||||
try {
|
||||
" " + EmojiCompat.get().process(currentConversation?.displayName as CharSequence).toString()
|
||||
} catch (e: IllegalStateException) {
|
||||
" " + currentConversation?.displayName
|
||||
}
|
||||
} else {
|
||||
""
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue