Updating notification more often
This commit is contained in:
parent
dd5ba4d38d
commit
6825cca32a
|
@ -528,8 +528,7 @@ public class DownloadService extends Service {
|
||||||
Log.d(TAG, "Setting up notification updater");
|
Log.d(TAG, "Setting up notification updater");
|
||||||
if (notificationUpdater == null) {
|
if (notificationUpdater == null) {
|
||||||
notificationUpdater = new NotificationUpdater();
|
notificationUpdater = new NotificationUpdater();
|
||||||
notificationUpdaterFuture = schedExecutor.scheduleAtFixedRate(
|
notificationUpdaterFuture = schedExecutor.scheduleAtFixedRate(notificationUpdater, 1, 1, TimeUnit.SECONDS);
|
||||||
notificationUpdater, 5L, 5L, TimeUnit.SECONDS);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue