diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt index 24287366f3..f2115b59f5 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt @@ -557,6 +557,10 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList val xDripIsBgSource = xdripPlugin.isEnabled() val dexcomIsSource = dexcomPlugin.isEnabled() binding.buttonsLayout.calibrationButton.visibility = ((xDripIsBgSource || dexcomIsSource) && actualBG != null && sp.getBoolean(R.string.key_show_calibration_button, true)).toVisibility() + if (dexcomPlugin.isEnabled()) + binding.buttonsLayout.cgmButton.setCompoundDrawables(rh.gd(R.drawable.ic_xdrip), null, null, null) + else if (xdripPlugin.isEnabled()) + binding.buttonsLayout.cgmButton.setCompoundDrawables(rh.gd(R.drawable.ic_byoda), null, null, null) binding.buttonsLayout.cgmButton.visibility = (sp.getBoolean(R.string.key_show_cgm_button, false) && (xDripIsBgSource || dexcomIsSource)).toVisibility() // Automation buttons diff --git a/app/src/main/res/drawable/ic_byoda.xml b/app/src/main/res/drawable/ic_byoda.xml new file mode 100644 index 0000000000..1cb312cfb3 --- /dev/null +++ b/app/src/main/res/drawable/ic_byoda.xml @@ -0,0 +1,9 @@ + + + diff --git a/icons/byoda.svg b/icons/byoda.svg new file mode 100644 index 0000000000..4feefdb599 --- /dev/null +++ b/icons/byoda.svg @@ -0,0 +1,9 @@ + + + + + +