From ae2c29a98d242cbea046f5599382a34e9595ad2a Mon Sep 17 00:00:00 2001 From: Philoul Date: Wed, 23 Dec 2020 22:03:39 +0100 Subject: [PATCH] Improve TT Long Click --- .../androidaps/plugins/general/overview/OverviewFragment.kt | 2 ++ 1 file changed, 2 insertions(+) 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 1916f28c06..1956c14768 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 @@ -186,6 +186,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList overviewMenus.setupPopupMenu(overview_apsmode, requireContext(), childFragmentManager) overviewMenus.setupPopupMenu(overview_activeprofile, requireContext(), childFragmentManager) overview_temptarget?.setOnClickListener(this) + overview_temptarget?.setOnLongClickListener(this) overview_accepttempbutton?.setOnClickListener(this) overview_treatmentbutton?.setOnClickListener(this) overview_wizardbutton?.setOnClickListener(this) @@ -361,6 +362,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList OverviewMenus.showOKCancel = false v.performClick() } + R.id.overview_temptarget -> v.performClick() } return false }