mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Require screen unlock to disable the security lock feature
also updated some strings to be aligned with upstream 😔 society
This commit is contained in:
parent
4229840dc6
commit
9371b774c2
2 changed files with 3 additions and 3 deletions
|
@ -205,7 +205,7 @@ fun SwitchPreferenceCompat.requireAuthentication(
|
||||||
) {
|
) {
|
||||||
onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, newValue ->
|
onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, newValue ->
|
||||||
newValue as Boolean
|
newValue as Boolean
|
||||||
if (newValue && activity != null && context.isAuthenticationSupported()) {
|
if (activity != null && context.isAuthenticationSupported()) {
|
||||||
activity.startAuthentication(
|
activity.startAuthentication(
|
||||||
title,
|
title,
|
||||||
subtitle,
|
subtitle,
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<!-- Security -->
|
<!-- Security -->
|
||||||
<string name="unlock_library">Unlock to access Library</string>
|
<string name="unlock_library">Unlock to access Library</string>
|
||||||
<string name="unlock">Unlock</string>
|
<string name="unlock">Unlock</string>
|
||||||
<string name="lock_with_biometrics">Lock with biometrics</string>
|
<string name="lock_with_biometrics">Require unlock</string>
|
||||||
<string name="lock_when_idle">Lock when idle</string>
|
<string name="lock_when_idle">Lock when idle</string>
|
||||||
|
|
||||||
<!-- Chapters -->
|
<!-- Chapters -->
|
||||||
|
@ -512,7 +512,7 @@
|
||||||
<item quantity="other">%1$d pages</item>
|
<item quantity="other">%1$d pages</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
<plurals name="missing_chapters_warning">
|
<plurals name="missing_chapters_warning">
|
||||||
<item quantity="one">Skipping 1 chapter, either the source is missing it or it has been filtered out</item>
|
<item quantity="one">Skipping %d chapter, either the source is missing it or it has been filtered out</item>
|
||||||
<item quantity="other">Skipping %d chapters, either the source is missing them or they have been filtered out</item>
|
<item quantity="other">Skipping %d chapters, either the source is missing them or they have been filtered out</item>
|
||||||
</plurals>
|
</plurals>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue