Remove useless param
This commit is contained in:
parent
e771b21ea3
commit
2b60affd9a
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue