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 2c7a60ea9e..232c8c02bf 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 @@ -757,6 +757,12 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList overview_uploader?.setOnClickListener { activity?.let { OKDialog.show(it, resourceHelper.gs(R.string.uploader), nsDeviceStatus.extendedUploaderStatus) } } // Sensitivity + if (sp.getBoolean(R.string.key_openapsama_useautosens, false)) { + overview_sensitivity_icon.setImageResource(R.drawable.ic_swap_vert_black_48dp_green) + }else { + overview_sensitivity_icon.setImageResource(R.drawable.ic_x_swap_vert_48px_green) + } + overview_sensitivity?.text = iobCobCalculatorPlugin.getLastAutosensData("Overview")?.let { autosensData -> String.format(Locale.ENGLISH, "%.0f%%", autosensData.autosensResult.ratio * 100) diff --git a/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml b/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml new file mode 100644 index 0000000000..b094d56057 --- /dev/null +++ b/app/src/main/res/drawable/ic_x_swap_vert_48px_green.xml @@ -0,0 +1,10 @@ + + + + + diff --git a/app/src/main/res/layout/overview_info_layout.xml b/app/src/main/res/layout/overview_info_layout.xml index 9f2cdd8c2f..1a2142dbbe 100644 --- a/app/src/main/res/layout/overview_info_layout.xml +++ b/app/src/main/res/layout/overview_info_layout.xml @@ -222,6 +222,7 @@ app:layout_constraintTop_toBottomOf="@+id/overview_bg"> + + + + + + + +