Remove useless param

This commit is contained in:
Benoit Marty 2021-01-12 15:23:14 +01:00 committed by Benoit Marty
parent e771b21ea3
commit 2b60affd9a
2 changed files with 3 additions and 5 deletions

View File

@ -40,8 +40,7 @@ fun Session.startSyncing(context: Context) {
// initial sync is done as a service so it can continue below app lifecycle
VectorSyncService.newOneShotIntent(
context = applicationContext,
sessionId = sessionId,
syncTimeoutSeconds = 0
sessionId = sessionId
)
.let {
try {

View File

@ -42,11 +42,10 @@ class VectorSyncService : SyncService() {
companion object {
fun newOneShotIntent(context: Context,
sessionId: String,
syncTimeoutSeconds: Int): Intent {
sessionId: String): Intent {
return Intent(context, VectorSyncService::class.java).also {
it.putExtra(EXTRA_SESSION_ID, sessionId)
it.putExtra(EXTRA_TIMEOUT_SECONDS, syncTimeoutSeconds)
it.putExtra(EXTRA_TIMEOUT_SECONDS, 0)
it.putExtra(EXTRA_PERIODIC, false)
}
}