Fix dynamic theme option visibility on old devices

This commit is contained in:
Sad Ellie 2023-09-05 15:40:22 +03:00
parent 50f0ddbe91
commit daf921c702

View File

@ -225,6 +225,8 @@ private fun ThemesScreen(
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
item { Header(stringResource(R.string.color_scheme)) }
item {
UnittoListItem(
leadingContent = {
@ -239,7 +241,6 @@ private fun ThemesScreen(
onSwitchChange = onDynamicThemeChange
)
}
}
item {
AnimatedVisibility(
@ -287,6 +288,7 @@ private fun ThemesScreen(
}
}
}
}
}
@Preview