fix: Prevent crash if an error is shown in a timeline without a FAB

This commit is contained in:
Nik Clayton 2023-12-09 22:30:58 +01:00
parent df45c0cd96
commit 4f65321a9d

View File

@ -240,7 +240,7 @@ class TimelineFragment :
) )
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,
message, message,
Snackbar.LENGTH_INDEFINITE, Snackbar.LENGTH_INDEFINITE,
).setTextMaxLines(5) ).setTextMaxLines(5)