From e41c42081dbd7beb80c2b23ddb2801530fdf6679 Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Thu, 13 Jun 2024 22:40:51 +0200 Subject: [PATCH] change: Dismiss the error snackbar before showing a new one (#745) --- .../main/java/app/pachli/components/timeline/TimelineFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/app/pachli/components/timeline/TimelineFragment.kt b/app/src/main/java/app/pachli/components/timeline/TimelineFragment.kt index 2dfcddd2a..6b5737c6b 100644 --- a/app/src/main/java/app/pachli/components/timeline/TimelineFragment.kt +++ b/app/src/main/java/app/pachli/components/timeline/TimelineFragment.kt @@ -238,6 +238,7 @@ class TimelineFragment : error.throwable.getErrorString(requireContext()), ) Timber.d(error.throwable, message) + snackbar?.dismiss() snackbar = Snackbar.make( // Without this the FAB will not move out of the way (activity as? ActionButtonActivity)?.actionButton ?: binding.root,