mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-26 15:05:10 +01:00
fix: Prevent crash if an error is shown in a timeline without a FAB
This commit is contained in:
parent
df45c0cd96
commit
4f65321a9d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user