@@ -92,7 +92,9 @@ import net.mullvad.mullvadvpn.compose.transitions.SelectLocationTransition
92
92
import net.mullvad.mullvadvpn.compose.util.CollectSideEffectWithLifecycle
93
93
import net.mullvad.mullvadvpn.compose.util.RunOnKeyChange
94
94
import net.mullvad.mullvadvpn.compose.util.showSnackbarImmediately
95
+ import net.mullvad.mullvadvpn.lib.model.CustomList
95
96
import net.mullvad.mullvadvpn.lib.model.CustomListId
97
+ import net.mullvad.mullvadvpn.lib.model.CustomListName
96
98
import net.mullvad.mullvadvpn.lib.model.RelayItem
97
99
import net.mullvad.mullvadvpn.lib.model.RelayItemId
98
100
import net.mullvad.mullvadvpn.lib.theme.AppTheme
@@ -365,6 +367,7 @@ fun SelectLocationScreen(
365
367
bottomSheetState =
366
368
ShowCustomListsEntryBottomSheet (
367
369
listItem.parentId,
370
+ listItem.parentName,
368
371
listItem.item
369
372
)
370
373
}
@@ -589,7 +592,8 @@ private fun BottomSheets(
589
592
CustomListEntryBottomSheet (
590
593
sheetState = sheetState,
591
594
onBackgroundColor = onBackgroundColor,
592
- customListId = bottomSheetState.parentId,
595
+ customListId = bottomSheetState.customListId,
596
+ customListName = bottomSheetState.customListName,
593
597
item = bottomSheetState.item,
594
598
onRemoveLocationFromList = onRemoveLocationFromList,
595
599
closeBottomSheet = onCloseBottomSheet
@@ -784,6 +788,7 @@ private fun CustomListEntryBottomSheet(
784
788
onBackgroundColor : Color ,
785
789
sheetState : SheetState ,
786
790
customListId : CustomListId ,
791
+ customListName : CustomListName ,
787
792
item : RelayItem .Location ,
788
793
onRemoveLocationFromList : (location: RelayItem .Location , customListId: CustomListId ) -> Unit ,
789
794
closeBottomSheet : (animate: Boolean ) -> Unit
@@ -794,7 +799,8 @@ private fun CustomListEntryBottomSheet(
794
799
modifier = Modifier .testTag(SELECT_LOCATION_LOCATION_BOTTOM_SHEET_TEST_TAG )
795
800
) {
796
801
HeaderCell (
797
- text = stringResource(id = R .string.remove_location_from_list, item.name),
802
+ text =
803
+ stringResource(id = R .string.remove_location_from_list, item.name, customListName),
798
804
background = Color .Unspecified
799
805
)
800
806
HorizontalDivider (color = onBackgroundColor)
@@ -902,7 +908,8 @@ sealed interface BottomSheetState {
902
908
data class ShowCustomListsBottomSheet (val editListEnabled : Boolean ) : BottomSheetState
903
909
904
910
data class ShowCustomListsEntryBottomSheet (
905
- val parentId : CustomListId ,
911
+ val customListId : CustomListId ,
912
+ val customListName : CustomListName ,
906
913
val item : RelayItem .Location
907
914
) : BottomSheetState
908
915
0 commit comments