mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 00:35:26 +02:00
Fix Monet mode for old devices
This commit is contained in:
parent
efc1c9a841
commit
23cbb3efb8
@ -85,6 +85,11 @@ internal fun ThemesRoute(
|
||||
},
|
||||
isDynamicThemeEnabled = themmoController.isDynamicThemeEnabled,
|
||||
onDynamicThemeChange = {
|
||||
// Prevent old devices from using other monet modes when dynamic theming is on
|
||||
if (it) {
|
||||
themmoController.setMonetMode(MonetMode.TONAL_SPOT)
|
||||
viewModel.updateMonetMode(MonetMode.TONAL_SPOT)
|
||||
}
|
||||
themmoController.enableDynamicTheme(it)
|
||||
viewModel.updateDynamicTheme(it)
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user