fix NPE
This commit is contained in:
parent
3fed995d51
commit
46968aa597
|
@ -86,7 +86,7 @@ class MedtronicFragment : Fragment() {
|
||||||
MedtronicPumpPlugin.getPlugin().resetStatusState()
|
MedtronicPumpPlugin.getPlugin().resetStatusState()
|
||||||
ConfigBuilderPlugin.getPlugin().commandQueue.readStatus("Clicked refresh", object : Callback() {
|
ConfigBuilderPlugin.getPlugin().commandQueue.readStatus("Clicked refresh", object : Callback() {
|
||||||
override fun run() {
|
override fun run() {
|
||||||
activity?.runOnUiThread { medtronic_refresh.isEnabled = true }
|
activity?.runOnUiThread { medtronic_refresh?.isEnabled = true }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue