mirror of
https://github.com/bitwarden/android.git
synced 2025-01-08 09:17:36 +03:00
Fix scroll
This commit is contained in:
parent
c88157fbce
commit
dc7fca0311
1 changed files with 3 additions and 3 deletions
|
@ -194,7 +194,7 @@ private fun VaultScreenScaffold(
|
||||||
var shouldShowExitConfirmationDialog by rememberSaveable { mutableStateOf(false) }
|
var shouldShowExitConfirmationDialog by rememberSaveable { mutableStateOf(false) }
|
||||||
val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(
|
val scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(
|
||||||
state = rememberTopAppBarState(),
|
state = rememberTopAppBarState(),
|
||||||
canScroll = { !accountMenuVisible },
|
canScroll = { !accountMenuVisible && !notificationMenuVisible },
|
||||||
)
|
)
|
||||||
|
|
||||||
// Dynamic dialogs
|
// Dynamic dialogs
|
||||||
|
@ -278,7 +278,7 @@ private fun VaultScreenScaffold(
|
||||||
},
|
},
|
||||||
floatingActionButton = {
|
floatingActionButton = {
|
||||||
AnimatedVisibility(
|
AnimatedVisibility(
|
||||||
visible = state.viewState.hasFab && !accountMenuVisible,
|
visible = state.viewState.hasFab && !accountMenuVisible && !notificationMenuVisible,
|
||||||
enter = scaleIn(),
|
enter = scaleIn(),
|
||||||
exit = scaleOut(),
|
exit = scaleOut(),
|
||||||
) {
|
) {
|
||||||
|
@ -380,7 +380,7 @@ private fun VaultScreenScaffold(
|
||||||
isVisible = notificationMenuVisible,
|
isVisible = notificationMenuVisible,
|
||||||
notificationSummaries = state.notificationSummaries.toImmutableList(),
|
notificationSummaries = state.notificationSummaries.toImmutableList(),
|
||||||
onNotificationClick = {},
|
onNotificationClick = {},
|
||||||
onDismissRequest = { updateAccountMenuVisibility(false) },
|
onDismissRequest = { updateNotificationMenuVisibility(false) },
|
||||||
topAppBarScrollBehavior = scrollBehavior,
|
topAppBarScrollBehavior = scrollBehavior,
|
||||||
modifier = outerModifier,
|
modifier = outerModifier,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue