Replace static reference with member reference

This commit is contained in:
Bart Sopers 2020-05-05 00:28:27 +02:00
parent 7db7e07a70
commit f7f5e0ce19

View file

@ -157,7 +157,7 @@ class PodManagementActivity : NoSplashAppCompatActivity() {
val isPodSessionActive = (omnipodUtil.getPodSessionState() != null)
initpod_remove_pod.isEnabled = isPodSessionActive
initpod_reset_pod.isEnabled = isPodSessionActive || OmnipodUtil.hasNextPodAddress()
initpod_reset_pod.isEnabled = isPodSessionActive || omnipodUtil.hasNextPodAddress()
if (omnipodUtil.getDriverState() == OmnipodDriverState.NotInitalized) {
// if rileylink is not running we disable all operations