change: Dismiss the error snackbar before showing a new one (#745)

This commit is contained in:
Nik Clayton 2024-06-13 22:40:51 +02:00 committed by GitHub
parent dd0e01a15c
commit e41c42081d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ class TimelineFragment :
error.throwable.getErrorString(requireContext()), error.throwable.getErrorString(requireContext()),
) )
Timber.d(error.throwable, message) Timber.d(error.throwable, message)
snackbar?.dismiss()
snackbar = Snackbar.make( snackbar = Snackbar.make(
// Without this the FAB will not move out of the way // Without this the FAB will not move out of the way
(activity as? ActionButtonActivity)?.actionButton ?: binding.root, (activity as? ActionButtonActivity)?.actionButton ?: binding.root,