removing google play background task starting, we should rely on play services
This commit is contained in:
parent
a6eadfe894
commit
c173adb783
|
@ -108,10 +108,6 @@ object FcmHelper {
|
||||||
|
|
||||||
@Suppress("UNUSED_PARAMETER")
|
@Suppress("UNUSED_PARAMETER")
|
||||||
fun onEnterBackground(context: Context, vectorPreferences: VectorPreferences, activeSessionHolder: ActiveSessionHolder) {
|
fun onEnterBackground(context: Context, vectorPreferences: VectorPreferences, activeSessionHolder: ActiveSessionHolder) {
|
||||||
val activeSession = activeSessionHolder.getSafeActiveSession() ?: return
|
// No op
|
||||||
activeSession.startAutomaticBackgroundSync(
|
|
||||||
vectorPreferences.backgroundSyncTimeOut().toLong(),
|
|
||||||
vectorPreferences.backgroundSyncDelay().toLong()
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue