Closed serrq closed 4 months ago
Problem:
This happens when you comeback to starting screen from a previous translation and you push the 'forget' button. Then 'paste' button doesn't appear.
What I want:
In short when the user pushes 'forget' then 'paste' button remains in place or it is moved elsewhere. But not disappear.
My Paste
and Forget
buttons are inline, below the input field and this happens because the "Forget" button actually modifies the Clipboard data to delete the text, which I don't personally agree with, but it still stays in the clipboard manager, like the one of your KB (if it has one) or the Samsung's global system one, it just deletes the last quick paste entry data.
Edit: If I copy something new, the 2 reappear for me. Just don't use the "Forget" one I guess, because it seems like it kind of does what it's intended for...
But if you fill again the clipboard, 'paste' button doesn't appear. The point is this. So, why it disappear? Cannot it staying there?
But if you fill again the clipboard, 'paste' button doesn't appear. The point is this. So, why it disappear? Cannot it staying there?
We can only listen for clipboard changes while the app is focused, so if you're copying something in an other app while Translate You is in the background, Translate You won't notice it.
If it'd stay there all the time, I'd consider that user unfriendly and annoying because it probably won't be useful most times as the clipboard is empty.
@Bnyro On A.8.1 x86 the "Forget" button produces the following crash with v.10.0, no such problem in v.9.0, I suspect it's whatever you did in this commit dbcff4d946350b0a8010e224bc157ce052629eda:
FATAL EXCEPTION: main
Process: com.bnyro.translate, PID: 16702
java.lang.NullPointerException: Attempt to read from field 'android.content.ClipDescription android.content.ClipData.mClipDescription' on a null object reference
at android.content.ClipData.
Describe your suggested feature
When the clipboard is filled I want paste the clipboard content into the text field in TY without have to evoke the system copy/paste.
If the clipboard is empty, then show a toastbar message like "clipboard is empty" and do nothing.
Other details
Acknowledgements