Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Explain the lock screen skip icons in the iOS skip settings

Barnabas2e6d6511a2c7
diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb
index b7134bc9..9d818ee9 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 294f007a..1ba842ec 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 1802df64..4447e451 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 da48fd17..649a4703 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 78f8654d..773623b9 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 69a831cb..52726d77 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 5378b634..bf4b9fba 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 2913909c..84d2b197 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 d50c0924..8edbf306 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 6ece2f2e..08f60d1b 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 d7aff842..75008d5c 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 bc4636f2..2efebc54 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 c2ef7335..cd12e5ec 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 85257b06..cd565865 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)),