mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 16:48:54 +01:00
Be more robust
This commit is contained in:
parent
5755d5bfaa
commit
c854491248
@ -191,7 +191,12 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
|
|||||||
backgroundHandler.removeCallbacksAndMessages(null)
|
backgroundHandler.removeCallbacksAndMessages(null)
|
||||||
backgroundHandler.postDelayed(
|
backgroundHandler.postDelayed(
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
refreshNotificationDrawerBg()
|
refreshNotificationDrawerBg()
|
||||||
|
} catch (throwable: Throwable) {
|
||||||
|
// It can happen if for instance session has been destroyed. It's a bit ugly to try catch like this, but it's safer
|
||||||
|
Timber.w(throwable, "refreshNotificationDrawerBg failure")
|
||||||
|
}
|
||||||
}, 200)
|
}, 200)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user