Increase maximum wakelock duration
This commit is contained in:
parent
c7df607d97
commit
db1f9366aa
|
@ -294,7 +294,7 @@ object OpenHumansUploader : PluginBase(
|
||||||
.map { queueTempTarget(it); showOngoingNotification(maxProgress, ++currentProgress) }
|
.map { queueTempTarget(it); showOngoingNotification(maxProgress, ++currentProgress) }
|
||||||
.ignoreElements()
|
.ignoreElements()
|
||||||
.doOnSubscribe {
|
.doOnSubscribe {
|
||||||
wakeLock.acquire(TimeUnit.MINUTES.toMillis(10))
|
wakeLock.acquire(TimeUnit.MINUTES.toMillis(20))
|
||||||
showOngoingNotification()
|
showOngoingNotification()
|
||||||
}
|
}
|
||||||
.doOnComplete {
|
.doOnComplete {
|
||||||
|
|
Loading…
Reference in a new issue