Browse Source

Add description for secure screen setting

arkon 5 years ago
parent
commit
7d4f25b354

+ 2 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt

@@ -17,6 +17,7 @@ import eu.kanade.tachiyomi.util.preference.onChange
 import eu.kanade.tachiyomi.util.preference.onClick
 import eu.kanade.tachiyomi.util.preference.preference
 import eu.kanade.tachiyomi.util.preference.preferenceCategory
+import eu.kanade.tachiyomi.util.preference.summaryRes
 import eu.kanade.tachiyomi.util.preference.switchPreference
 import eu.kanade.tachiyomi.util.preference.titleRes
 import eu.kanade.tachiyomi.util.system.LocaleHelper
@@ -171,6 +172,7 @@ class SettingsGeneralController : SettingsController() {
             switchPreference {
                 key = Keys.secureScreen
                 titleRes = R.string.secure_screen
+                summaryRes = R.string.secure_screen_summary
                 defaultValue = false
             }
         }

+ 1 - 0
app/src/main/res/layout-land/reader_color_filter_sheet.xml

@@ -33,6 +33,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:visibility="gone" />
+
     </FrameLayout>
 
     <androidx.core.widget.NestedScrollView

+ 1 - 0
app/src/main/res/layout/reader_color_filter_sheet.xml

@@ -26,6 +26,7 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:visibility="gone" />
+
     </FrameLayout>
 
     <androidx.core.widget.NestedScrollView

+ 1 - 0
app/src/main/res/values/strings.xml

@@ -144,6 +144,7 @@
         <item quantity="other">After %1$s minutes</item>
     </plurals>
     <string name="secure_screen">Secure screen</string>
+    <string name="secure_screen_summary">Hide app contents when switching apps and block screenshots</string>
 
       <!-- Library section -->
     <string name="pref_category_library_display">Display</string>