making sure the disappearing modifier is not doing anything when the top or bottom bars are not present.
This commit is contained in:
+2
-2
@@ -51,14 +51,14 @@ fun DisappearingScaffold(
|
|||||||
val topBehavior =
|
val topBehavior =
|
||||||
enterAlwaysScrollBehavior(
|
enterAlwaysScrollBehavior(
|
||||||
canScroll = {
|
canScroll = {
|
||||||
isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
topBar != null && isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
||||||
},
|
},
|
||||||
reverseLayout = isInvertedLayout,
|
reverseLayout = isInvertedLayout,
|
||||||
)
|
)
|
||||||
val bottomBehavior =
|
val bottomBehavior =
|
||||||
BottomAppBarDefaults.exitAlwaysScrollBehavior(
|
BottomAppBarDefaults.exitAlwaysScrollBehavior(
|
||||||
canScroll = {
|
canScroll = {
|
||||||
isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
(bottomBar != null || floatingButton != null) && isActive() && accountViewModel.settings.isImmersiveScrollingActive()
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user