delay observing for EventPumpStatusChanged
This commit is contained in:
parent
6ab2a7bb7e
commit
7826c41834
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,7 @@ import org.apache.commons.lang3.StringUtils
|
||||||
import java.time.Duration
|
import java.time.Duration
|
||||||
import java.time.ZonedDateTime
|
import java.time.ZonedDateTime
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
import java.util.concurrent.TimeUnit
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
import kotlin.collections.ArrayList
|
import kotlin.collections.ArrayList
|
||||||
|
|
||||||
|
@ -213,6 +214,7 @@ class OmnipodDashOverviewFragment : DaggerFragment() {
|
||||||
disposables += rxBus
|
disposables += rxBus
|
||||||
.toObservable(EventPumpStatusChanged::class.java)
|
.toObservable(EventPumpStatusChanged::class.java)
|
||||||
.observeOn(aapsSchedulers.main)
|
.observeOn(aapsSchedulers.main)
|
||||||
|
.delay(30, TimeUnit.MILLISECONDS, aapsSchedulers.main)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
{
|
{
|
||||||
updateBluetoothConnectionStatus(it)
|
updateBluetoothConnectionStatus(it)
|
||||||
|
|
Loading…
Reference in a new issue