FossifyOrg / Notes

A simple text field for adding quick notes without ads.
https://www.fossify.org
GNU General Public License v3.0
223 stars 16 forks source link

Checklists Becoming Corrupted When Rapidly Completing Items #66

Open GTHub23 opened 2 months ago

GTHub23 commented 2 months ago

Checklist

Affected app version

1.1.0

Affected Android/Custom ROM version

Android 13

Affected device model

Moto G82

How did you install the app?

Google Play Store

Steps to reproduce the bug

  1. Create (or use) a current Checklist
  2. Create at least 2 items in checklist; I used "Test 1", "Test 2", "Test 3"
  3. Tap 3 Dots > "Export as file" and "Update the file itself..."
  4. Quickly check 2 items in rapid succession

Expected behavior

Items in checklist should become checked/scored out/ticked and be displayed normally

Actual behavior

All items are condensed into 1 item which shows the files underlying code for the checklist, and cannot be mannually separated

A new file must be manually created within the app to replace the old file, and all previous entries manually entered again

Screenshots/Screen recordings

Please find attached a copy of the Test Note I used in TXT format which is in working order: @Checklist Test Note Working.txt

And a copy of the Test Note I used in TXT format which is in broken: @Checklist Test Note Broken.txt

Additional information

I have attempted to try and replicate this bug by using a note stored only within the app, and have been unable to replicate it; that is to say I skipped Step 3 of "Steps To Reproduce..." and immediately attempted Step 4

In the event the files I uploaded are unreadable, please find below a copy of the code from these files if required: Working [{"dateCreated":1726403475958,"id":1,"isDone":false,"title":"Test 1"},{"dateCreated":1726403475958,"id":2,"isDone":false,"title":"Test 2"},{"dateCreated":1726403475958,"id":3,"isDone":false,"title":"Test 3"}]

Broken [{"dateCreated":0,"id":0,"isDone":false,"title":"[{\"dateCreated\":1726403475958,\"id\":1,\"isDone\":true,\"title\":\"Test 1\"},{\"dateCreated\":1726403475958,\"id\":2,\"isDone\":true,\"title\":\"Test 2\"},{\"dateCreated\":1726403475958,\"id\":3,\"isDone\":false,\"title\":\"Test 3\"}]]"}]

GTHub23 commented 2 months ago

Just tried to replicate this issue again whilst doing a screencap but it didn't happen every time. However, I did eventually manage to capture a short video of the glitch occurring

Please find attached a screencap in MP4 format. I accidentally tapped the resulting individual checklist item which checked it as done; normally this would remain unchecked once the glitch occurs

https://github.com/user-attachments/assets/0e913d7d-112d-442d-a5c6-47e788140453