Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Explain the lock screen skip icons in the iOS skip settings

Barnabasa2106627cebe
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index 839b5362..a90a2d9b 100644
--- a/lib/l10n/app_en.arb
+++ b/lib/l10n/app_en.arb
@@ -749,6 +749,7 @@
"defaultSpeedSubtitle": "New books start at this speed - each book remembers its own",
"skipBack": "Skip back",
"skipForward": "Skip forward",
+ "iosLockScreenSkipHint": "The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.",
"longSkipButtons": "Long skip buttons",
"longSkipButtonsOnSubtitle": "On - the player shows a second, bigger skip pair",
"longSkipButtonsOffSubtitle": "Off - just the regular skip buttons",
diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart
index 67b35e3f..3f1288f4 100644
--- a/lib/l10n/app_localizations.dart
+++ b/lib/l10n/app_localizations.dart
@@ -2998,6 +2998,12 @@ abstract class AppLocalizations {
/// **'Skip forward'**
String get skipForward;
+ /// No description provided for @iosLockScreenSkipHint.
+ ///
+ /// In en, this message translates to:
+ /// **'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.'**
+ String get iosLockScreenSkipHint;
+
/// No description provided for @longSkipButtons.
///
/// In en, this message translates to:
diff --git a/lib/l10n/app_localizations_de.dart b/lib/l10n/app_localizations_de.dart
index f7f6e9c0..d189802a 100644
--- a/lib/l10n/app_localizations_de.dart
+++ b/lib/l10n/app_localizations_de.dart
@@ -1602,6 +1602,10 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get skipForward => 'Vorspulen';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Lange Überspringen Tasten';
diff --git a/lib/l10n/app_localizations_el.dart b/lib/l10n/app_localizations_el.dart
index 336d9370..f542fc14 100644
--- a/lib/l10n/app_localizations_el.dart
+++ b/lib/l10n/app_localizations_el.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsEl extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart
index cc580ffe..99903ed8 100644
--- a/lib/l10n/app_localizations_en.dart
+++ b/lib/l10n/app_localizations_en.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_es.dart b/lib/l10n/app_localizations_es.dart
index a57ce08a..fa994660 100644
--- a/lib/l10n/app_localizations_es.dart
+++ b/lib/l10n/app_localizations_es.dart
@@ -1589,6 +1589,10 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_fr.dart b/lib/l10n/app_localizations_fr.dart
index 10571978..5ccf1c55 100644
--- a/lib/l10n/app_localizations_fr.dart
+++ b/lib/l10n/app_localizations_fr.dart
@@ -1610,6 +1610,10 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get skipForward => 'Avancer';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Boutons de saut long';
diff --git a/lib/l10n/app_localizations_it.dart b/lib/l10n/app_localizations_it.dart
index 29724395..21d7683e 100644
--- a/lib/l10n/app_localizations_it.dart
+++ b/lib/l10n/app_localizations_it.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_ja.dart b/lib/l10n/app_localizations_ja.dart
index c718e078..b570d3c7 100644
--- a/lib/l10n/app_localizations_ja.dart
+++ b/lib/l10n/app_localizations_ja.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_no.dart b/lib/l10n/app_localizations_no.dart
index 8e723067..0b3be3f5 100644
--- a/lib/l10n/app_localizations_no.dart
+++ b/lib/l10n/app_localizations_no.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsNo extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_pt.dart b/lib/l10n/app_localizations_pt.dart
index 239ef21f..24da3c79 100644
--- a/lib/l10n/app_localizations_pt.dart
+++ b/lib/l10n/app_localizations_pt.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_ro.dart b/lib/l10n/app_localizations_ro.dart
index 3b281431..4a4bec86 100644
--- a/lib/l10n/app_localizations_ro.dart
+++ b/lib/l10n/app_localizations_ro.dart
@@ -1587,6 +1587,10 @@ class AppLocalizationsRo extends AppLocalizations {
@override
String get skipForward => 'Skip forward';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_ru.dart b/lib/l10n/app_localizations_ru.dart
index beceb882..a7454de8 100644
--- a/lib/l10n/app_localizations_ru.dart
+++ b/lib/l10n/app_localizations_ru.dart
@@ -1589,6 +1589,10 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get skipForward => 'Перейти вперед';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart
index e1fc7ffe..479a8077 100644
--- a/lib/l10n/app_localizations_zh.dart
+++ b/lib/l10n/app_localizations_zh.dart
@@ -1562,6 +1562,10 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get skipForward => '快进';
+ @override
+ String get iosLockScreenSkipHint =>
+ 'The lock screen only draws the numbers iOS has icons for (5, 10, 15, 30, 45, 60, 75, 90). Other amounts show + on the button but still skip by your setting.';
+
@override
String get longSkipButtons => 'Long skip buttons';
diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart
index 13ef167c..9e8b61b3 100644
--- a/lib/screens/settings_screen.dart
+++ b/lib/screens/settings_screen.dart
@@ -2554,6 +2554,15 @@ class _SettingsScreenState extends State<SettingsScreen> {
PlayerSettings.setForwardSkip(v.round());
} : null,
),
+ if (Platform.isIOS)
+ Padding(
+ padding: const EdgeInsets.fromLTRB(16, 4, 16, 8),
+ child: Text(
+ l.iosLockScreenSkipHint,
+ style: tt.bodySmall?.copyWith(
+ color: cs.onSurfaceVariant, height: 1.35),
+ ),
+ ),
SwitchListTile(
title: Row(children: [
Expanded(child: Text(l.chapterBarrierOnRewind)),