mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 04:50:08 +03:00
removing google play background task starting, we should rely on play services
This commit is contained in:
parent
a6eadfe894
commit
c173adb783
1 changed files with 1 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue