mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2024-12-24 16:02:13 +01:00
Merge pull request #3718 from ByteHamster/downloadservice-io-main-thread
Do not enqueue on main tread (database IO)
This commit is contained in:
commit
2e8b7e988f
@ -167,7 +167,7 @@ public class DownloadService extends Service {
|
||||
Notification notification = notificationManager.updateNotifications(
|
||||
requester.getNumberOfDownloads(), downloads);
|
||||
startForeground(NOTIFICATION_ID, notification);
|
||||
onDownloadQueued(intent);
|
||||
syncExecutor.execute(() -> onDownloadQueued(intent));
|
||||
} else if (numberOfDownloads.get() == 0) {
|
||||
stopSelf();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user