Skip to content

Commit

Permalink
Fix floating effect for custom list description
Browse files Browse the repository at this point in the history
  • Loading branch information
Pururun committed Apr 4, 2024
1 parent e45f61d commit 5cc6c98
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ fun SelectLocationScreen(
customLists(
customLists = state.filteredCustomLists,
selectedItem = state.selectedItem,
backgroundColor = backgroundColor,
onSelectRelay = onSelectRelay,
onShowCustomListBottomSheet = {
bottomSheetState =
Expand Down Expand Up @@ -375,6 +376,7 @@ private fun LazyListScope.loading() {
private fun LazyListScope.customLists(
customLists: List<RelayItem.CustomList>,
selectedItem: RelayItem?,
backgroundColor: Color,
onSelectRelay: (item: RelayItem) -> Unit,
onShowCustomListBottomSheet: () -> Unit,
onShowEditBottomSheet: (RelayItem.CustomList) -> Unit
Expand Down Expand Up @@ -413,14 +415,16 @@ private fun LazyListScope.customLists(
item {
SwitchComposeSubtitleCell(
text = stringResource(R.string.to_add_locations_to_a_list),
modifier = Modifier.animateItemPlacement().animateContentSize()
modifier =
Modifier.background(backgroundColor).animateItemPlacement().animateContentSize()
)
}
} else {
item(contentType = ContentType.EMPTY_TEXT) {
SwitchComposeSubtitleCell(
text = stringResource(R.string.to_create_a_custom_list),
modifier = Modifier.animateItemPlacement().animateContentSize()
modifier =
Modifier.background(backgroundColor).animateItemPlacement().animateContentSize()
)
}
}
Expand Down

0 comments on commit 5cc6c98

Please sign in to comment.