Skip to content

Commit

Permalink
chore: Move default setting to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
1fexd committed May 14, 2023
1 parent 1cc6fdc commit e641a1e
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,30 +153,30 @@ fun PreferredBrowserSettingsRoute(
}
}

item(key = "none") {
item(key = "always_ask") {
RadioButtonRow(
selected = viewModel.browserMode == BrowserHandler.BrowserMode.None,
selected = viewModel.browserMode == BrowserHandler.BrowserMode.AlwaysAsk,
onClick = {
viewModel.onBrowserMode(BrowserHandler.BrowserMode.None)
viewModel.onBrowserMode(BrowserHandler.BrowserMode.AlwaysAsk)
},
onLongClick = null
) {
Texts(headline = R.string.none, subtitle = R.string.none_explainer)
Texts(
headline = R.string.always_ask,
subtitle = R.string.always_ask_explainer
)
}
}

item(key = "always_ask") {
item(key = "none") {
RadioButtonRow(
selected = viewModel.browserMode == BrowserHandler.BrowserMode.AlwaysAsk,
selected = viewModel.browserMode == BrowserHandler.BrowserMode.None,
onClick = {
viewModel.onBrowserMode(BrowserHandler.BrowserMode.AlwaysAsk)
viewModel.onBrowserMode(BrowserHandler.BrowserMode.None)
},
onLongClick = null
) {
Texts(
headline = R.string.always_ask,
subtitle = R.string.always_ask_explainer
)
Texts(headline = R.string.none, subtitle = R.string.none_explainer)
}
}

Expand Down

0 comments on commit e641a1e

Please sign in to comment.