Replace static reference with member reference
This commit is contained in:
parent
7db7e07a70
commit
f7f5e0ce19
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class PodManagementActivity : NoSplashAppCompatActivity() {
|
||||||
val isPodSessionActive = (omnipodUtil.getPodSessionState() != null)
|
val isPodSessionActive = (omnipodUtil.getPodSessionState() != null)
|
||||||
|
|
||||||
initpod_remove_pod.isEnabled = isPodSessionActive
|
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 (omnipodUtil.getDriverState() == OmnipodDriverState.NotInitalized) {
|
||||||
// if rileylink is not running we disable all operations
|
// if rileylink is not running we disable all operations
|
||||||
|
|
Loading…
Reference in a new issue