and one more

This commit is contained in:
CherretGit
2025-08-21 16:44:03 +07:00
parent 49f61892da
commit e988bfdd2e

View File

@@ -233,7 +233,7 @@ private fun FloatingMenu(navController: NavController, launcher: ActivityResultL
@Composable
fun ListTypeChoose(viewModel: HostsViewModel, prefs : SharedPreferences) {
val listType = remember { mutableStateOf(prefs.getString("listtype", "whitelist")!!)}
val listType = remember { mutableStateOf(getHostListMode(prefs))}
val options = listOf(stringResource(R.string.title_whitelist), stringResource(R.string.title_blacklist))
val selectedIndex = if (listType.value == "whitelist") 0 else 1