From a4f46feffc05a832e94a5814c3e55674fc4216ae Mon Sep 17 00:00:00 2001 From: Edric Date: Mon, 2 Dec 2024 02:40:46 +0800 Subject: [PATCH] NightModeUtils: Update `V2AutoBattery` usage --- .../com/edricchan/studybuddy/ui/theming/NightModeUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/theming/views/src/main/kotlin/com/edricchan/studybuddy/ui/theming/NightModeUtils.kt b/ui/theming/views/src/main/kotlin/com/edricchan/studybuddy/ui/theming/NightModeUtils.kt index 58b0f084..5489e01d 100644 --- a/ui/theming/views/src/main/kotlin/com/edricchan/studybuddy/ui/theming/NightModeUtils.kt +++ b/ui/theming/views/src/main/kotlin/com/edricchan/studybuddy/ui/theming/NightModeUtils.kt @@ -66,7 +66,7 @@ enum class DarkThemeOption(val prefValue: DarkThemeValue, val mode: NightMode) { NightMode.Yes ), V2AutoBatterySaver( - DarkThemeValue.V2AutoBattery, + DarkThemeValue.V1AutoBattery, NightMode.AutoBattery ), V2FollowSystem( @@ -87,7 +87,7 @@ enum class DarkThemeOption(val prefValue: DarkThemeValue, val mode: NightMode) { DarkThemePrefValues.V1_AUTO_TIME -> V1AutoTime DarkThemePrefValues.V1_NEVER -> V1Never DarkThemePrefValues.V2_ALWAYS -> V2Always - DarkThemePrefValues.V2_AUTO_BATTERY -> V2AutoBatterySaver + DarkThemePrefValues.V1_AUTO_BATTERY -> V2AutoBatterySaver DarkThemePrefValues.V2_FOLLOW_SYSTEM -> V2FollowSystem DarkThemePrefValues.V2_NEVER -> V2Never else -> Default