From 6aaedefbed14289f8965d402e0563400fdbc6d2d Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 15 Nov 2021 18:45:55 +0100 Subject: [PATCH] Profile: fix Save button behavior --- .../androidaps/plugins/profile/local/LocalProfileFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt index f799d0ae8e..a227f55796 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/profile/local/LocalProfileFragment.kt @@ -156,6 +156,7 @@ class LocalProfileFragment : DaggerFragment() { activity?.let { activity -> OKDialog.showConfirmation(activity, rh.gs(R.string.doyouwantswitchprofile), { localProfilePlugin.currentProfileIndex = position + localProfilePlugin.isEdited = false build() }, { spinner?.setSelection(localProfilePlugin.currentProfileIndex)