mirror of
https://github.com/oxen-io/session-android.git
synced 2025-11-17 00:02:56 +00:00
Reduce background polling interval
This commit is contained in:
@@ -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(2)
|
private val pollInterval = TimeUnit.MINUTES.toMillis(1)
|
||||||
|
|
||||||
@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(4)
|
private val pollInterval = TimeUnit.MINUTES.toMillis(2)
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun schedule(context: Context) {
|
fun schedule(context: Context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user