Fix top padding in room list when app is opened in offline mode (#1299)

* Fix top padding in room list when app is opened in offline mode

* Fix `avatarBloom` not passing the `bottomSoftEdgeColor` to `bloom`
This commit is contained in:
Jorge Martin Espinosa
2023-09-13 17:13:15 +02:00
committed by GitHub
parent 1fdcdff4b8
commit c1ae0ead3b
3 changed files with 5 additions and 1 deletions

View File

@@ -109,7 +109,9 @@ fun ConnectivityIndicatorContainer(
} else {
WindowInsets.statusBars.asPaddingValues().calculateTopPadding() + 6.dp
}
val target = remember(isOnline) { if (isOnline) 0.dp else statusBarTopPadding }
val target = remember(isIndicatorVisible.targetState, statusBarTopPadding) {
if (!isIndicatorVisible.targetState) 0.dp else statusBarTopPadding
}
val animationStateOffset by animateDpAsState(
targetValue = target,
animationSpec = spring(