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(
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user