A cross platform Audiobookshelf client for Android and iOS
Dart
Remove broken fallback speed icon and add AudioService init logging
Nathan Poulson1a6a348030c8
diff --git a/android/app/src/main/res/drawable/ic_speed.xml b/android/app/src/main/res/drawable/ic_speed.xmldeleted file mode 100644index 6e2e7f18..00000000--- a/android/app/src/main/res/drawable/ic_speed.xml+++ /dev/null@@ -1,13 +0,0 @@-<vector xmlns:android="http://schemas.android.com/apk/res/android"- android:width="24dp"- android:height="24dp"- android:viewportWidth="24"- android:viewportHeight="24"- android:tint="?attr/colorControlNormal">- <path- android:fillColor="@android:color/white"- android:pathData="M20.38,8.57l-1.23,1.85a8,8 0,0 1,-0.22 7.58L5.07,18A8,8 0,0 1,15.58 6.85l1.85,-1.23A10,10 0,0 0,3.35 19a2,2 0,0 0,1.72 1h13.85a2,2 0,0 0,1.74 -1 10,10 0,0 0,-0.27 -10.44z"/>- <path- android:fillColor="@android:color/white"- android:pathData="M10.59,15.41a2,2 0,0 0,2.83 0l5.66,-8.49 -8.49,5.66a2,2 0,0 0,0 2.83z"/>-</vector>diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dartindex 3ee69e06..8ecd56c1 100644--- a/lib/services/audio_player_service.dart+++ b/lib/services/audio_player_service.dart@@ -251,7 +251,7 @@ class AudioPlayerHandler extends BaseAudioHandler with SeekHandler {} else if ((speed - 2.5).abs() < 0.01) {speedIcon = 'drawable/ic_speed_250';} else {- speedIcon = 'drawable/ic_speed'; // Generic fallback+ speedIcon = 'drawable/ic_speed_100'; // Safe fallback}final speedAction = MediaControl.custom(androidIcon: speedIcon,@@ -893,6 +893,8 @@ class AudioPlayerService extends ChangeNotifier {debugPrint('[Player] AudioService initialized');// Configure audio session for audiobook playbackawait _configureAudioSession();+ } catch (e, st) {+ debugPrint('[Player] AudioService.init failed: $e\n$st');} finally {if (!_initCompleter.isCompleted) _initCompleter.complete();}diff --git a/pubspec.yaml b/pubspec.yamlindex 5b11a221..1957f332 100644--- a/pubspec.yaml+++ b/pubspec.yaml@@ -1,7 +1,7 @@name: absorbdescription: A Material 3 Audiobookshelf client for Android.publish_to: 'none'-version: 1.7.26+34+version: 1.7.28+34environment:sdk: '>=3.1.0 <4.0.0'