Increase background polling interval

pull/137/head
Niels Andriesse 5 years ago
parent 7aea4cd952
commit 32193e4efd

@ -15,7 +15,7 @@ import java.util.concurrent.TimeUnit
class BackgroundPollWorker : PersistentAlarmManagerListener() { class BackgroundPollWorker : PersistentAlarmManagerListener() {
companion object { companion object {
private val pollInterval = TimeUnit.MINUTES.toMillis(1) private val pollInterval = TimeUnit.MINUTES.toMillis(2)
@JvmStatic @JvmStatic
fun schedule(context: Context) { fun schedule(context: Context) {

@ -10,7 +10,7 @@ import java.util.concurrent.TimeUnit
class BackgroundPublicChatPollWorker : PersistentAlarmManagerListener() { class BackgroundPublicChatPollWorker : PersistentAlarmManagerListener() {
companion object { companion object {
private val pollInterval = TimeUnit.MINUTES.toMillis(2) private val pollInterval = TimeUnit.MINUTES.toMillis(4)
@JvmStatic @JvmStatic
fun schedule(context: Context) { fun schedule(context: Context) {

Loading…
Cancel
Save