diff options
| author | lubenard <lubenard@student.42.fr> | 2020-06-13 22:06:16 +0000 |
|---|---|---|
| committer | lubenard <lubenard@student.42.fr> | 2020-06-13 22:30:10 +0000 |
| commit | 8a6e2f457d5c30c837dd3e26fcec62e1cf5c7ee2 (patch) | |
| tree | 7f3289a77d85a2ef1b0ab2a4222390c6ddb76cac /ime/app/src/main/java | |
| parent | d7b478f2fe57a905f23c67befb83587006a3b986 (diff) | |
| download | AnySoftKeyboard-8a6e2f457d5c30c837dd3e26fcec62e1cf5c7ee2.tar.gz AnySoftKeyboard-8a6e2f457d5c30c837dd3e26fcec62e1cf5c7ee2.tar.bz2 | |
First version, had to disable setInputType for clipboard
Diffstat (limited to 'ime/app/src/main/java')
| -rw-r--r-- | ime/app/src/main/java/com/anysoftkeyboard/ime/AnySoftKeyboardClipboard.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ime/app/src/main/java/com/anysoftkeyboard/ime/AnySoftKeyboardClipboard.java b/ime/app/src/main/java/com/anysoftkeyboard/ime/AnySoftKeyboardClipboard.java index 60bb95c4c..e8fdca954 100644 --- a/ime/app/src/main/java/com/anysoftkeyboard/ime/AnySoftKeyboardClipboard.java +++ b/ime/app/src/main/java/com/anysoftkeyboard/ime/AnySoftKeyboardClipboard.java @@ -76,6 +76,7 @@ public abstract class AnySoftKeyboardClipboard extends AnySoftKeyboardSwipeListe LayoutInflater.from(mOwner.getContext()) .inflate(R.layout.clipboard_suggestion_action, parent, false); mClipboardText = rootView.findViewById(R.id.clipboard_suggestion_text); + mClipboardText.setSelected(true); rootView.setOnClickListener( view -> { final TextView clipboardText = mClipboardText; @@ -98,11 +99,12 @@ public abstract class AnySoftKeyboardClipboard extends AnySoftKeyboardSwipeListe void setClipboardText(CharSequence text, boolean isSecured) { mClipboardText.setText(text); - mClipboardText.setInputType( - InputType.TYPE_CLASS_TEXT - | (isSecured - ? InputType.TYPE_TEXT_VARIATION_PASSWORD - : InputType.TYPE_TEXT_VARIATION_NORMAL)); + // Adding a setInput type seems to break the ellipsize + /*mClipboardText.setInputType( + InputType.TYPE_CLASS_TEXT + | (isSecured + ? InputType.TYPE_TEXT_VARIATION_PASSWORD + : InputType.TYPE_TEXT_VARIATION_NORMAL));*/ } } |
