When switching to the App, the Copy/Cut/Paste menu is showed #26

Open
opened 2020-12-27 12:22:44 +00:00 by Jonny007-MKD · 12 comments

Everytime I switch to the App the Copy menu is displayed like if some text was selected. This happens both in the Overview and the Settings panel. If I hit Copy no text is copied, though.

I'm using version 1.0 from F-Droid.

Everytime I switch to the App the Copy menu is displayed like if some text was selected. This happens both in the Overview and the Settings panel. If I hit Copy no text is copied, though. I'm using version 1.0 from F-Droid.

Hey! Thanks for your filed issues! Could you maybe make a video / GIF for that? Which Android version / mobile phone are you using?

Copy & Paste for text which are no input fields are disabled by default within Ionic apps. I noticed one or two issues like that before but could not reproduce them...

Hey! Thanks for your filed issues! Could you maybe make a video / GIF for that? Which Android version / mobile phone are you using? Copy & Paste for text which are no input fields are disabled by default within Ionic apps. I noticed one or two issues like that before but could not reproduce them...

Ha, now I can't reproduce it anymore, too :) I just now switched to the App and saw it. Then I closed it and opened it again, it displayed the loading icon (so the App restarted) and now it does not occur again.

I'll come back to you if I see it again, and hopefully I remember what I did before :D

Ha, now I can't reproduce it anymore, too :) I just now switched to the App and saw it. Then I closed it and opened it again, it displayed the loading icon (so the App restarted) and now it does not occur again. I'll come back to you if I see it again, and hopefully I remember what I did before :D
epinez added the due date 2021-02-27 2020-12-27 15:32:48 +00:00

Okay, nice! :-D Will let this issue open for two months and close it if there are no occurences till then!

Okay, nice! :-D Will let this issue open for two months and close it if there are no occurences till then!

I can confirm I see this, too, very persistently when it begins but triggering the bug is eluding me.
I'm also trying to figure out what steps cause it.

Once it begins, the cut/copy/paste is selecting the search field, I have noticed that much. So perhaps there's a default hover or selection of the search field that can be demoted to any other non-textual element.

I can confirm I see this, too, very persistently when it begins but triggering the bug is eluding me. I'm also trying to figure out what steps cause it. Once it begins, the cut/copy/paste *is* selecting the search field, I have noticed that much. So perhaps there's a default hover or selection of the search field that can be demoted to any other non-textual element.

Once it begins, the cut/copy/paste is selecting the search field, I have noticed that much. So perhaps there's a default hover or selection of the search field that can be demoted to any other non-textual element.

I'm not sure whether I can confirm this. For me the menu was more at the (vertical) center of the screen. Also, there has to be some selected text for the menu to display "copy". If it was only focus it would start with "paste"...

>Once it begins, the cut/copy/paste *is* selecting the search field, I have noticed that much. So perhaps there's a default hover or selection of the search field that can be demoted to any other non-textual element. I'm not sure whether I can confirm this. For me the menu was more at the (vertical) center of the screen. Also, there has to be some selected text for the menu to display "copy". If it was only focus it would start with "paste"...

I can reproduce this now:
If I select some text field in a sub and close it with Android's back button, the menu is still shown, but now in the overview. I can close the menu with "copy" and it comes back when switching back to the app.

I can reproduce this now: If I select some text field in a sub and close it with Android's back button, the menu is still shown, but now in the overview. I can close the menu with "copy" and it comes back when switching back to the app.

I tried to reproduce that but unfortunately I couldn't @Jonny007-MKD Could you make a short video or step by step manual of how to reproduce this? Android version / mobile phone would help to.

I tried to reproduce that but unfortunately I couldn't @Jonny007-MKD Could you make a short video or step by step manual of how to reproduce this? Android version / mobile phone would help to.
epinez added the
question
label 2021-01-02 09:29:35 +00:00

I recorded my screen and uploaded the video here:
https://newown.nordlichter-brv.de/s/fN4KDHi9i2FXkdc

Actually it's quite easy to reproduce: Simply select some text in the description of a Sub and then close the page with the Back key. Afterwards the menu is always popping up again.

I'm using F-Droid's version 1.0 on LineageOS 17.1 (Android 10).

I recorded my screen and uploaded the video here: https://newown.nordlichter-brv.de/s/fN4KDHi9i2FXkdc Actually it's quite easy to reproduce: Simply select some text in the description of a Sub and then close the page with the Back key. Afterwards the menu is always popping up again. I'm using F-Droid's version 1.0 on LineageOS 17.1 (Android 10).
epinez removed the
question
label 2021-01-02 10:40:53 +00:00

Thanks! Very strange, I can't reproduce it with v1.0 from F-Droid with GrapheneOS (Android 11) Will dig deeper into that.

Thanks! Very strange, I can't reproduce it with v1.0 from F-Droid with GrapheneOS (Android 11) Will dig deeper into that.

Okay sometimes its reproducible for me but not always... Tbh I have no clue what this could trigger. Maybe it's a bug within Capacitor, Ionic or one of its JavaScript dependencies. :-/

Okay sometimes its reproducible for me but not always... Tbh I have no clue what this could trigger. Maybe it's a bug within Capacitor, Ionic or one of its JavaScript dependencies. :-/

Verflixt.

I'd guess that the Sub form (or whatever the correct term is) isn't (completely) destroyed but moved to the background. Thus the text stays selected and the menu is triggered every now and then by Android.

Is it possible to attach some code to the closing event of the Sub and to remove the selection (e.g. by setting the focus in something)? That would at least be a workaround.

Verflixt. I'd guess that the Sub form (or whatever the correct term is) isn't (completely) destroyed but moved to the background. Thus the text stays selected and the menu is triggered every now and then by Android. Is it possible to attach some code to the closing event of the Sub and to remove the selection (e.g. by setting the focus in something)? That would at least be a workaround.

Oh that would definitely be possible - but not clean code :-D Would you mind building the app from source and try a few code modifications by yourself? I could guide you through that and you could test by yourself wether the issue is gone.

You would have to:

  1. Install the dependencies: https://codeberg.org/epinez/Subz#prerequisites
  2. Make a data backup within Subz, remove Subz because you can't install the same app with another signature
  3. Modify the code, first suspect: https://codeberg.org/epinez/Subz/src/branch/main/src/app/tab-overview/Components/modal-add-subscription/modal-add-subscription.component.ts#L65 You could comment in L65 with // so that the function won't get invoked. Its the function which autofocuses the first input upon opening the modal (maybe it has something to do with it)
  4. Build the app: https://codeberg.org/epinez/Subz#build-the-app
  5. Make a data restore within Subz

And try after building within Android Studio wether the bug still persists :-)

Oh that would definitely be possible - but not clean code :-D Would you mind building the app from source and try a few code modifications by yourself? I could guide you through that and you could test by yourself wether the issue is gone. You would have to: 1. Install the dependencies: https://codeberg.org/epinez/Subz#prerequisites 2. Make a data backup within Subz, remove Subz because you can't install the same app with another signature 3. Modify the code, first suspect: https://codeberg.org/epinez/Subz/src/branch/main/src/app/tab-overview/Components/modal-add-subscription/modal-add-subscription.component.ts#L65 You could comment in L65 with `//` so that the function won't get invoked. Its the function which autofocuses the first input upon opening the modal (maybe it has something to do with it) 4. Build the app: https://codeberg.org/epinez/Subz#build-the-app 5. Make a data restore within Subz And try after building within Android Studio wether the bug still persists :-)
epinez added the
help wanted
bug
labels 2021-02-24 01:37:06 +00:00
epinez removed the due date 2021-02-27 2021-03-01 22:43:47 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: epinez/Subz#26
There is no content yet.