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