Skip to content

Commit

Permalink
Change night mode default value to "manual" (#2901)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Oct 12, 2023
1 parent 3ef56ed commit 8195176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/net/bible/service/device/ScreenSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ object ScreenSettings {
}

private val autoNightMode get() =
autoModeAvailable && preferences.getString("night_mode_pref3", "system") == "automatic"
val manualMode: Boolean get() = preferences.getString("night_mode_pref3", "system") == "manual"
val systemMode: Boolean get() = preferences.getString("night_mode_pref3", "system") == "system"
autoModeAvailable && preferences.getString("night_mode_pref3", "manual") == "automatic"
val manualMode: Boolean get() = preferences.getString("night_mode_pref3", "manual") == "manual"
val systemMode: Boolean get() = preferences.getString("night_mode_pref3", "manual") == "system"

val autoModeAvailable = lightSensor.isLightSensor

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
android:entries="@array/prefs_night_mode_descriptions"
android:entryValues="@array/prefs_night_mode_values"
android:icon="@drawable/ic_night_mode_switching_24dp"
android:defaultValue="system"/>
android:defaultValue="manual"/>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/prefs_display_customization_cat">
Expand Down

0 comments on commit 8195176

Please sign in to comment.