This commit is contained in:
Tim Gunn 2020-05-11 21:54:32 +12:00
parent add8b71ea3
commit a4f4894985
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C

View file

@ -187,10 +187,9 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
overview_bggraph?.gridLabelRenderer?.reloadStyles()
overview_bggraph?.gridLabelRenderer?.labelVerticalWidth = axisWidth
val carbicon = overview_carbs_icon;
carbAnimation = carbicon.background as AnimationDrawable
carbAnimation.setEnterFadeDuration(1200);
carbAnimation.setExitFadeDuration(1200);
carbAnimation = overview_carbs_icon.background as AnimationDrawable
carbAnimation.setEnterFadeDuration(1200)
carbAnimation.setExitFadeDuration(1200)
rangeToDisplay = sp.getInt(R.string.key_rangetodisplay, 6)
@ -748,7 +747,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
val lastRun = loopPlugin.lastRun
if (config.APS && lastRun?.constraintsProcessed != null && lastRun?.constraintsProcessed.carbsReq > 0) {
overview_cob?.text = cobText + " ("+lastRun?.constraintsProcessed.carbsReq + " req)"
overview_cob?.text = cobText + " *" + lastRun?.constraintsProcessed.carbsReq + " "+R.string.required+"*"
if (!carbAnimation.isRunning)
carbAnimation.start()
} else {