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
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ class TimelineFragment :
)
snackbar = Snackbar.make(
// Without this the FAB will not move out of the way
(activity as ActionButtonActivity).actionButton ?: binding.root,
(activity as? ActionButtonActivity)?.actionButton ?: binding.root,
message,
Snackbar.LENGTH_INDEFINITE,
).setTextMaxLines(5)