mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Fix dynamic theme option visibility on old devices
This commit is contained in:
parent
50f0ddbe91
commit
daf921c702
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user