No issue: only sync once on startup
parent
b9f6f7fa93
commit
282c2dc182
|
@ -111,7 +111,7 @@ open class HomeActivity : AppCompatActivity(), ShareFragment.TabsSharedCallback
|
||||||
accountManager.initAsync().await()
|
accountManager.initAsync().await()
|
||||||
// If we're authenticated, kick-off a sync and a device state refresh.
|
// If we're authenticated, kick-off a sync and a device state refresh.
|
||||||
accountManager.authenticatedAccount()?.let {
|
accountManager.authenticatedAccount()?.let {
|
||||||
accountManager.syncNowAsync(startup = true)
|
accountManager.syncNowAsync(startup = true, debounce = true)
|
||||||
it.deviceConstellation().pollForEventsAsync().await()
|
it.deviceConstellation().pollForEventsAsync().await()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue