Skip to content

Notes: The body of a note is lost when the process is killed while the editor is in the foreground #414

Description

@fubai578

Checklist

  • I can reproduce the bug with the latest version given here.
  • I made sure that there are no existing issues - open or closed - to which I could contribute my information.
  • I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
  • I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected app version

1.7.0 (version code 13)

Affected Android/Custom ROM version

Android 14 (API 34)

Affected device model

Android emulator, Pixel 6 profile (1080 x 2400)

How did you install the app?

None

Steps to reproduce the bug

  1. Open a note, type a title and a body, and leave the editor open.
  2. Without leaving the editor (do not press Back, Home or Recents), force-stop the app from the system settings (Apps > Notes > Force stop).
  3. Open the app again and open the same note.
  4. Look at the body of the note.

Expected behavior

The body that was typed and accepted by the editor should still be there after the app restarts. The app exposes an Autosave notes switch in the settings and it is enabled by default, and the body is fully visible in the editor before the process ends - so a user reasonably expects the text to have been persisted.

Actual behavior

After I killed the app and opened the note again, the body was back to the placeholder text "Insert text here" - everything I typed was gone. The title was still there.

The body is only kept if I leave the editor first (pressing Home, Back or swiping the app away). If the app is killed while I am still typing in the editor, the text is lost, even though Autosave notes is enabled. I lost a long note this way.

Screenshots/Screen recordings

ignoreImageMinify ignoreImageMinify ignoreImageMinify

Additional information

Package: org.fossify.notes
Version: 1.7.0.

With Autosave notes on I expect my text to be saved while I type. Instead the note was empty after the app was killed, and I only noticed when I came back to it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not workingneeds triageIssue is not yet ready for PR authors to take up

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions