From 7fa390ead6bbe5c6f17f683b97fde931d63672b0 Mon Sep 17 00:00:00 2001 From: Dmitriy Chernysh Date: Tue, 10 Oct 2023 19:04:03 +0300 Subject: [PATCH] Don't trim the text from EditText value when managing clipboard items. --- .../simplemobiletools/keyboard/dialogs/AddOrEditClipDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/dialogs/AddOrEditClipDialog.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/dialogs/AddOrEditClipDialog.kt index b055d03..d4b5ec3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/dialogs/AddOrEditClipDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/dialogs/AddOrEditClipDialog.kt @@ -24,7 +24,7 @@ class AddOrEditClipDialog(val activity: BaseSimpleActivity, val originalClip: Cl activity.setupDialogStuff(binding.root, this) { alertDialog -> alertDialog.showKeyboard(binding.addClipValue) alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener { - val clipValue = binding.addClipValue.value + val clipValue = binding.addClipValue.text.toString() if (clipValue.isEmpty()) { activity.toast(R.string.value_cannot_be_empty) return@setOnClickListener