Avatar generation can take long, so better check if ChooseAccountDialogFragment is still active
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
87b8c1342f
commit
3ceb0b359e
@ -193,7 +193,9 @@ class ChooseAccountDialogFragment :
|
||||
}
|
||||
|
||||
override fun avatarGenerated(avatarDrawable: Drawable?, callContext: Any?) {
|
||||
binding.currentAccount.userIcon.setImageDrawable(avatarDrawable)
|
||||
if (_binding != null) {
|
||||
binding.currentAccount.userIcon.setImageDrawable(avatarDrawable)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onAccountClicked(user: User?) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user