Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving a subtask in edit mode, crashes activity, loses data. #1046

Open
navid-zamani opened this issue Oct 24, 2021 · 2 comments
Open

Moving a subtask in edit mode, crashes activity, loses data. #1046

navid-zamani opened this issue Oct 24, 2021 · 2 comments

Comments

@navid-zamani
Copy link

Try this:

  1. Create a new task with two subtasks and save it.
  2. Now go into that task, and edit the second subtask. (No need to actually change anything for the crash to happen.)
  3. While still in edit mode (where the delete button is displayed [and awfully close to the text, threatening to insta-vanish your subtask on a mistap]), move the second subtask to the top.

Result:
The task view crashes/exist. All changes are lost!
(Doesn’t seem to happen all the time, but when one is quick, it happens almost always.)

Expected result:
No crash. The subtask ends up there.

Suspected cause:
Since I had this happen with especially long subtask texts too, and the calculation where the subtask should end up is generally quite wonky and often off by a line or so, I suspect that it’s that bit of code that crashes.

Version: 1.4.2 (The latest one in F-Droid)
OS: Android 10 (EMUI 10.0.0.202)

@navid-zamani
Copy link
Author

Oh man, and again I lost all my subtask edits, and can’t remember what I entered. This ia becoming a real problem.

I wish I could help out, but the way Android structures apps seems insanely over-engineered to me. I couldn’t even find where it handles the drag release event for all the busywork code in there, and Android Studio is no help either. Much respect that you can even handle this mess of a platform.

@navid-zamani
Copy link
Author

For anyone looking for a solution: I found a workaround:
While still dragging, press the square button on the bottom of the screen (the Android task switcher) twice, to switch to another app. (The second tap feature does not exist on older Android, but it should still save you.) Then switch back. Your dragged subtask will leave edit mode, and be de-focused without being lost. It will not be where your finger was, due to the positioning bug, but it will be close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant