fix duplicate vals

This commit is contained in:
Tim Gunn 2020-05-29 22:42:54 +12:00
parent 0dfdf6c68a
commit 15717f0271
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C

View file

@ -757,7 +757,6 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
if (cobInfo.futureCarbs > 0) cobText += "(" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")" if (cobInfo.futureCarbs > 0) cobText += "(" + DecimalFormatter.to0Decimal(cobInfo.futureCarbs) + ")"
} }
val lastRun = loopPlugin.lastRun
if (config.APS && lastRun?.constraintsProcessed != null) { if (config.APS && lastRun?.constraintsProcessed != null) {
if (lastRun.constraintsProcessed!!.carbsReq > 0) { if (lastRun.constraintsProcessed!!.carbsReq > 0) {
overview_cob?.text = cobText + " | " + lastRun.constraintsProcessed!!.carbsReq + " " + resourceHelper.gs(R.string.required) overview_cob?.text = cobText + " | " + lastRun.constraintsProcessed!!.carbsReq + " " + resourceHelper.gs(R.string.required)