Do not enqueue on main tread (database IO)

This commit is contained in:
ByteHamster 2020-01-02 17:54:00 +01:00
parent 5fc6877a87
commit e119b154cb
1 changed files with 1 additions and 1 deletions

View File

@ -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 {