Voklen / Daily-Diary

An app to create a diary entry every day
GNU General Public License v3.0
49 stars 2 forks source link

Entries are gone when I restart the app #11

Closed CodingFan72 closed 1 year ago

CodingFan72 commented 1 year ago

Hi, I have the problem that all entries of the current day are gone when I close and reopen the app.

I looked at the .txt files in parallel with a text editor in order to find out what happenend:

When I create an entry, the app writes the text into the file. But when I close the app, it "erases" the text from the file or creates a new, empty file (I couldn't really figure that out).

What am I doing wrong?

I use a Samsung Galaxy S22 with Android 13.

mrodant commented 1 year ago

Same issue for me. I was once quick enough to reenter the app and see my entry, however, but it got erased as soon as I exited again. It is happening since the last update yesterday. I use a Xiaomi Redmi Note 8 Pro with Android 13.

Voklen commented 1 year ago

I'll look into this now and see what I can do

Voklen commented 1 year ago

It seems to be working for me on my FairPhone 4 (Android 13 as well), are we doing the same thing?

https://user-images.githubusercontent.com/56766748/229791730-95133127-3a06-44c1-8f05-2db325dbf33d.mp4

mrodant commented 1 year ago

I've tested it as well and found out that my entries only get erased when I press the "Back" arrow-like menu button in my phone, and not when I exit the app by pressing the square or circle icons and closing it. I'll be opening the app and closing it using only the square and circle every once in a while to check if it gets erased after some time. If I don't update on the matter, it will mean that it doesn't erase anything that way. Anyways, I'd like to be able to close the app in both ways, as it did before, since I might forget it and get my entry erased, and I really couldn't migrate from this app, it's perfect except for that now.

https://user-images.githubusercontent.com/129682869/229803357-746ed7f1-b561-45db-bc6f-6d88b2726beb.mp4

Voklen commented 1 year ago

Aha, it seem an update to string_scanner at 9f2be371b7686da35fe94a7fd33be1f2ff7c4e64 caused it. I'm working on finding a fix for this now.

mrodant commented 1 year ago

Good to know where the issue is and glad to see it might be fixed soon.

Voklen commented 1 year ago

And that's just me done! 3ec14f203cb98bbe8c61eda63b7a48649c254b06 should be the fix, I'll make a new release to get it out to you as soon as possible.

Voklen commented 1 year ago

v1.2.2 released, it'll take a few days to update on F-Droid but in the meantime don't exit with the back arrow. You can try download the latest apk from here but I will warn you that it'll remove all your entries if they're not backed up due to key signing. Thanks to both of you for the help, I hope you have a good day :smile:

mrodant commented 1 year ago

Thanks!