Improve TT Long Click

This commit is contained in:
Philoul 2020-12-23 22:03:39 +01:00
parent f76c6a4910
commit ae2c29a98d

View file

@ -186,6 +186,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
overviewMenus.setupPopupMenu(overview_apsmode, requireContext(), childFragmentManager) overviewMenus.setupPopupMenu(overview_apsmode, requireContext(), childFragmentManager)
overviewMenus.setupPopupMenu(overview_activeprofile, requireContext(), childFragmentManager) overviewMenus.setupPopupMenu(overview_activeprofile, requireContext(), childFragmentManager)
overview_temptarget?.setOnClickListener(this) overview_temptarget?.setOnClickListener(this)
overview_temptarget?.setOnLongClickListener(this)
overview_accepttempbutton?.setOnClickListener(this) overview_accepttempbutton?.setOnClickListener(this)
overview_treatmentbutton?.setOnClickListener(this) overview_treatmentbutton?.setOnClickListener(this)
overview_wizardbutton?.setOnClickListener(this) overview_wizardbutton?.setOnClickListener(this)
@ -361,6 +362,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList
OverviewMenus.showOKCancel = false OverviewMenus.showOKCancel = false
v.performClick() v.performClick()
} }
R.id.overview_temptarget -> v.performClick()
} }
return false return false
} }