diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt index 60936ac6..4a4b64b2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/views/ConverterView.kt @@ -51,6 +51,14 @@ class ConverterView @JvmOverloads constructor( binding.topUnitHolder.setClickListenerForUnitSelector(::topUnit, ::bottomUnit) binding.bottomUnitHolder.setClickListenerForUnitSelector(::bottomUnit, ::topUnit) + binding.topUnitHolder.setOnLongClickListener { + context.copyToClipboard(binding.topUnitText.text.toString()) + true + } + binding.bottomUnitHolder.setOnLongClickListener { + context.copyToClipboard(binding.bottomUnitText.text.toString()) + true + } updateColors() }