Merge pull request #1037 from swissalpine/patch-6
Allow/reenable the setting of TempTargets while pump is suspended or …
This commit is contained in:
commit
bfff13d561
1 changed files with 4 additions and 7 deletions
|
@ -361,10 +361,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
|
||||||
activity,
|
activity,
|
||||||
ProtectionCheck.Protection.BOLUS,
|
ProtectionCheck.Protection.BOLUS,
|
||||||
UIRunnable { if (isAdded) CarbsDialog().show(childFragmentManager, "Overview") })
|
UIRunnable { if (isAdded) CarbsDialog().show(childFragmentManager, "Overview") })
|
||||||
R.id.temp_target ->
|
R.id.temp_target -> protectionCheck.queryProtection(
|
||||||
if (loop.isDisconnected) OKDialog.show(activity, rh.gs(R.string.not_available_full), rh.gs(R.string.smscommunicator_pumpdisconnected))
|
|
||||||
else
|
|
||||||
protectionCheck.queryProtection(
|
|
||||||
activity,
|
activity,
|
||||||
ProtectionCheck.Protection.BOLUS,
|
ProtectionCheck.Protection.BOLUS,
|
||||||
UIRunnable { if (isAdded) TempTargetDialog().show(childFragmentManager, "Overview") })
|
UIRunnable { if (isAdded) TempTargetDialog().show(childFragmentManager, "Overview") })
|
||||||
|
|
Loading…
Reference in a new issue