Disable reader's 'Keep screen on' setting by default (mihonapp/mihon#2095)

(cherry picked from commit f0de8f973b331ebad6e1844aea7864f97f237941)
This commit is contained in:
AntsyLich 2025-05-11 18:59:21 +06:00 committed by Cuong-Tran
parent 903281c2ef
commit bd93329372
2 changed files with 2 additions and 1 deletions

View file

@ -36,6 +36,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
- Update Facebook and Reddit icons ([@Joehuu](https://github.com/Joehuu)) ([#1994](https://github.com/mihonapp/mihon/pull/1994))
- Switch default user agent to Android Chrome ([@AntsyLich](https://github.com/AntsyLich)) ([#2048](https://github.com/mihonapp/mihon/pull/2048))
- Changed log in button text when processing tracker login ([@AntsyLich](https://github.com/AntsyLich)) ([#2069](https://github.com/mihonapp/mihon/pull/2069))
- Disable reader's 'Keep screen on' setting by default ([@AntsyLich](https://github.com/AntsyLich)) ([#2095](https://github.com/mihonapp/mihon/pull/2095))
### Fixes
- Fix Bangumi search results including novels ([@MajorTanya](https://github.com/MajorTanya)) ([#1885](https://github.com/mihonapp/mihon/pull/1885))

View file

@ -39,7 +39,7 @@ class ReaderPreferences(
fun cutoutShort() = preferenceStore.getBoolean("cutout_short", true)
fun keepScreenOn() = preferenceStore.getBoolean("pref_keep_screen_on_key", true)
fun keepScreenOn() = preferenceStore.getBoolean("pref_keep_screen_on_key", false)
fun defaultReadingMode() = preferenceStore.getInt(
"pref_default_reading_mode_key",