Enable pip

This commit is contained in:
Caten
2024-04-16 12:47:33 +08:00
parent 1ee935105e
commit aa6d0feed7
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class AppPreferences(context: Context) {
inner class Viewer { inner class Viewer {
val orientation; get() = prefs.getString("viewer_orientation", "landscape") val orientation; get() = prefs.getString("viewer_orientation", "landscape")
val fullscreen; get() = prefs.getBoolean("fullscreen_display", true) val fullscreen; get() = prefs.getBoolean("fullscreen_display", true)
val pipEnabled; get() = prefs.getBoolean("pip_enabled", false) val pipEnabled; get() = prefs.getBoolean("pip_enabled", true)
val drawBehindCutout; get() = prefs.getBoolean("viewer_draw_behind_cutout", false) val drawBehindCutout; get() = prefs.getBoolean("viewer_draw_behind_cutout", false)
val keepScreenOn; get() = prefs.getBoolean("keep_screen_on", true) val keepScreenOn; get() = prefs.getBoolean("keep_screen_on", true)
val toolbarAlignment; get() = prefs.getString("toolbar_alignment", "start") val toolbarAlignment; get() = prefs.getString("toolbar_alignment", "start")

View File

@@ -19,7 +19,7 @@
app:useSimpleSummaryProvider="true" /> app:useSimpleSummaryProvider="true" />
<SwitchPreference <SwitchPreference
app:defaultValue="false" app:defaultValue="true"
app:key="pip_enabled" app:key="pip_enabled"
app:title="@string/pref_enable_pip" /> app:title="@string/pref_enable_pip" />