feat: enable library scan notifications on iOS (remove Android-only guard)

This commit is contained in:
zarzet
2026-02-12 01:14:10 +07:00
parent 979186243c
commit 92f408035a
2 changed files with 1 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
### Added
- "Filter Contributing Artists in Album Artist" setting - strips featured/contributing artists from Album Artist metadata tag
- Library scan notifications (Android) - shows progress, completion, failure, and cancellation status
- Library scan notifications (Android and iOS) - shows progress, completion, failure, and cancellation status
- Collapsible "Artist Name Filters" section in download settings UI
### Fixed
@@ -578,7 +578,6 @@ class LocalLibraryNotifier extends Notifier<LocalLibraryState> {
required int totalFiles,
required String? currentFile,
}) async {
if (!Platform.isAndroid) return;
try {
await _notificationService.showLibraryScanProgress(
progress: progress,
@@ -596,7 +595,6 @@ class LocalLibraryNotifier extends Notifier<LocalLibraryState> {
required int excludedDownloadedCount,
required int errorCount,
}) async {
if (!Platform.isAndroid) return;
try {
await _notificationService.showLibraryScanComplete(
totalTracks: totalTracks,
@@ -609,7 +607,6 @@ class LocalLibraryNotifier extends Notifier<LocalLibraryState> {
}
Future<void> _showScanFailedNotification(String message) async {
if (!Platform.isAndroid) return;
try {
await _notificationService.showLibraryScanFailed(message);
} catch (e) {
@@ -618,7 +615,6 @@ class LocalLibraryNotifier extends Notifier<LocalLibraryState> {
}
Future<void> _showScanCancelledNotification() async {
if (!Platform.isAndroid) return;
try {
await _notificationService.showLibraryScanCancelled();
} catch (e) {