From 739c46c358d591d96c5836e11461700a6ab93214 Mon Sep 17 00:00:00 2001 From: Marcos Cordeiro Date: Fri, 10 May 2024 00:45:34 -0300 Subject: [PATCH] Fixes deadlock Documented on https://github.com/ryanheise/audio_service/issues/1063 --- .../main/java/com/ryanheise/audioservice/AudioService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/audio_service/android/src/main/java/com/ryanheise/audioservice/AudioService.java b/audio_service/android/src/main/java/com/ryanheise/audioservice/AudioService.java index 98775283..8220a672 100644 --- a/audio_service/android/src/main/java/com/ryanheise/audioservice/AudioService.java +++ b/audio_service/android/src/main/java/com/ryanheise/audioservice/AudioService.java @@ -636,10 +636,8 @@ private Notification buildNotification() { builder.setContentText(description.getSubtitle()); if (description.getDescription() != null) builder.setSubText(description.getDescription()); - synchronized (this) { - if (artBitmap != null) - builder.setLargeIcon(artBitmap); - } + if (artBitmap != null) + builder.setLargeIcon(artBitmap); } if (config.androidNotificationClickStartsActivity) builder.setContentIntent(mediaSession.getController().getSessionActivity());