desktop: catch Toast exception (#3028)
This commit is contained in:
parent
113a57c7c7
commit
ad65622407
@ -104,7 +104,11 @@ object NtfManager {
|
||||
actions.forEach {
|
||||
builder.action(it.first, it.second)
|
||||
}
|
||||
prevNtfs.add(chatId to builder.toast())
|
||||
try {
|
||||
prevNtfs.add(chatId to builder.toast())
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, e.stackTraceToString())
|
||||
}
|
||||
}
|
||||
|
||||
private fun prepareIconPath(icon: ImageBitmap?): String? = if (icon != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user