MedtronicFragment synchronized
This commit is contained in:
parent
1cb93c630d
commit
bfedc3d9d7
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,7 @@ class MedtronicFragment : Fragment() {
|
||||||
updateGUI()
|
updateGUI()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Synchronized
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
MainApp.bus().register(this)
|
MainApp.bus().register(this)
|
||||||
|
@ -142,6 +143,7 @@ class MedtronicFragment : Fragment() {
|
||||||
}, { FabricPrivacy.logException(it) })
|
}, { FabricPrivacy.logException(it) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Synchronized
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
super.onPause()
|
super.onPause()
|
||||||
disposable.clear()
|
disposable.clear()
|
||||||
|
@ -249,7 +251,9 @@ class MedtronicFragment : Fragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GUI functions
|
// GUI functions
|
||||||
|
@Synchronized
|
||||||
fun updateGUI() {
|
fun updateGUI() {
|
||||||
|
if (medtronic_rl_status == null) return
|
||||||
val plugin = MedtronicPumpPlugin.getPlugin()
|
val plugin = MedtronicPumpPlugin.getPlugin()
|
||||||
val pumpStatus = MedtronicUtil.getPumpStatus()
|
val pumpStatus = MedtronicUtil.getPumpStatus()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue