Merge pull request #1037 from swissalpine/patch-6

Allow/reenable the setting of TempTargets while pump is suspended or …
This commit is contained in:
Milos Kozak 2021-12-07 09:57:15 +01:00 committed by GitHub
commit bfff13d561
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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") })