Don't trim the text from EditText value when managing clipboard items.
This commit is contained in:
parent
e3c813bc36
commit
7fa390ead6
|
@ -24,7 +24,7 @@ class AddOrEditClipDialog(val activity: BaseSimpleActivity, val originalClip: Cl
|
||||||
activity.setupDialogStuff(binding.root, this) { alertDialog ->
|
activity.setupDialogStuff(binding.root, this) { alertDialog ->
|
||||||
alertDialog.showKeyboard(binding.addClipValue)
|
alertDialog.showKeyboard(binding.addClipValue)
|
||||||
alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
alertDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener {
|
||||||
val clipValue = binding.addClipValue.value
|
val clipValue = binding.addClipValue.text.toString()
|
||||||
if (clipValue.isEmpty()) {
|
if (clipValue.isEmpty()) {
|
||||||
activity.toast(R.string.value_cannot_be_empty)
|
activity.toast(R.string.value_cannot_be_empty)
|
||||||
return@setOnClickListener
|
return@setOnClickListener
|
||||||
|
|
Loading…
Reference in New Issue