Make keep screen on in reader optional

This commit is contained in:
Koitharu
2023-10-02 16:39:14 +03:00
parent cfda150630
commit b2927854d4
7 changed files with 30 additions and 4 deletions

View File

@@ -4,8 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true">
android:layout_height="match_parent">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/container"

View File

@@ -489,4 +489,6 @@
<string name="zoom_in">Zoom in</string>
<string name="reader_zoom_buttons">Show zoom buttons</string>
<string name="reader_zoom_buttons_summary">Whether to show zoom control buttons in the bottom right corner</string>
<string name="keep_screen_on">Keep screen on</string>
<string name="keep_screen_on_summary">Do not turn the screen off while you\'re reading manga</string>
</resources>

View File

@@ -78,13 +78,19 @@
android:summary="@string/show_pages_numbers_summary"
android:title="@string/show_pages_numbers" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="reader_screen_on"
android:summary="@string/keep_screen_on_summary"
android:title="@string/keep_screen_on"
app:allowDividerAbove="true" />
<ListPreference
android:defaultValue="allow"
android:entries="@array/screenshots_policy"
android:entryValues="@array/values_screenshots_policy"
android:key="screenshots_policy"
android:title="@string/screenshots_policy"
app:allowDividerAbove="true"
app:useSimpleSummaryProvider="true" />
<ListPreference