forked from GitHub-Mirror/riotX-android
Fix crash reported by PlayStore
This commit is contained in:
parent
fe69206340
commit
e2ea76f871
@ -182,7 +182,8 @@ class NotificationDrawerManager @Inject constructor(private val context: Context
|
|||||||
private fun refreshNotificationDrawerBg() {
|
private fun refreshNotificationDrawerBg() {
|
||||||
Timber.w("refreshNotificationDrawerBg()")
|
Timber.w("refreshNotificationDrawerBg()")
|
||||||
|
|
||||||
val session = activeSessionHolder.getActiveSession()
|
val session = activeSessionHolder.getSafeActiveSession() ?: return
|
||||||
|
|
||||||
val user = session.getUser(session.sessionParams.credentials.userId)
|
val user = session.getUser(session.sessionParams.credentials.userId)
|
||||||
val myUserDisplayName = user?.displayName ?: session.sessionParams.credentials.userId
|
val myUserDisplayName = user?.displayName ?: session.sessionParams.credentials.userId
|
||||||
val myUserAvatarUrl = session.contentUrlResolver().resolveThumbnail(user?.avatarUrl, avatarSize, avatarSize, ContentUrlResolver.ThumbnailMethod.SCALE)
|
val myUserAvatarUrl = session.contentUrlResolver().resolveThumbnail(user?.avatarUrl, avatarSize, avatarSize, ContentUrlResolver.ThumbnailMethod.SCALE)
|
||||||
|
Loading…
Reference in New Issue
Block a user