Skip to content

Commit

Permalink
Use switch instead dialog for Dynamic Color item
Browse files Browse the repository at this point in the history
  • Loading branch information
Julie Wang committed May 12, 2023
1 parent a1732e5 commit f9011b7
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,10 @@ fun ThemeSettings(
extraIconPadding = true,
)
if (supportDynamicColor) {
DialogSettingsItems(
titleRes = string.dynamic_color,
selectedItem = settings.useDynamicColor,
itemList = listOf(
true to string.options_on,
false to string.options_off,
),
onValueChange = onChangeDynamicColorPreference,
SwitchSettingItem(
itemRes = string.dynamic_color,
checked = settings.useDynamicColor,
onCheckedChange = onChangeDynamicColorPreference,
)
}
DialogSettingsItems(
Expand Down

0 comments on commit f9011b7

Please sign in to comment.