@@ -320,6 +320,7 @@ fun SelectLocationScreen(
320
320
customLists(
321
321
customLists = state.filteredCustomLists,
322
322
selectedItem = state.selectedItem,
323
+ backgroundColor = backgroundColor,
323
324
onSelectRelay = onSelectRelay,
324
325
onShowCustomListBottomSheet = {
325
326
bottomSheetState =
@@ -375,6 +376,7 @@ private fun LazyListScope.loading() {
375
376
private fun LazyListScope.customLists (
376
377
customLists : List <RelayItem .CustomList >,
377
378
selectedItem : RelayItem ? ,
379
+ backgroundColor : Color ,
378
380
onSelectRelay : (item: RelayItem ) -> Unit ,
379
381
onShowCustomListBottomSheet : () -> Unit ,
380
382
onShowEditBottomSheet : (RelayItem .CustomList ) -> Unit
@@ -413,14 +415,16 @@ private fun LazyListScope.customLists(
413
415
item {
414
416
SwitchComposeSubtitleCell (
415
417
text = stringResource(R .string.to_add_locations_to_a_list),
416
- modifier = Modifier .animateItemPlacement().animateContentSize()
418
+ modifier =
419
+ Modifier .background(backgroundColor).animateItemPlacement().animateContentSize()
417
420
)
418
421
}
419
422
} else {
420
423
item(contentType = ContentType .EMPTY_TEXT ) {
421
424
SwitchComposeSubtitleCell (
422
425
text = stringResource(R .string.to_create_a_custom_list),
423
- modifier = Modifier .animateItemPlacement().animateContentSize()
426
+ modifier =
427
+ Modifier .background(backgroundColor).animateItemPlacement().animateContentSize()
424
428
)
425
429
}
426
430
}
0 commit comments