File tree 1 file changed +2
-5
lines changed
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,7 @@ fun SelectLocationScreen(
175
175
uiState.relayListState.selectedItem != null
176
176
) {
177
177
LaunchedEffect (uiState.relayListState.selectedItem) {
178
- val index =
179
- uiState.relayListState.indexOfSelectedRelayItem(
180
- uiState.relayListState.selectedItem
181
- )
178
+ val index = uiState.relayListState.indexOfSelectedRelayItem()
182
179
183
180
if (index >= 0 ) {
184
181
lazyListState.scrollToItem(index)
@@ -278,7 +275,7 @@ private fun LazyListScope.relayList(
278
275
}
279
276
}
280
277
281
- private fun RelayListState.RelayList.indexOfSelectedRelayItem (selectedItem : RelayItem ? ): Int =
278
+ private fun RelayListState.RelayList.indexOfSelectedRelayItem (): Int =
282
279
countries.indexOfFirst { relayCountry ->
283
280
relayCountry.location.location.country ==
284
281
when (selectedItem) {
You can’t perform that action at this time.
0 commit comments