mirror of
https://github.com/CherretGit/zaprett-app.git
synced 2025-12-18 01:29:41 +05:00
and one more
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user