Treker/uhabits-android
Jesse Johnson cc645f537e
Auto-save notes when dismissing checkmark and number dialogs
Previously, when a user entered notes for a habit entry, then dismissed the
dialog (either intentionally or, as often the case for me, accidentally), any
changes to the notes would be lost.

This change seeks to avoid data loss by auto-saving notes when the dialog is
closed. This handles a several data loss scenarios:

- pressing the back button
- clicking outside the dialog box
- rotating the screen
- turning off the screen

(To be honest, I have done all of these at least once by accident, and some
dozens of times.)

As part of this change, the NumberDialog now trims whitespace from notes when
manually saving to be consistent with CheckmarkDialog.
2025-12-02 15:24:04 -08:00
..
src Auto-save notes when dismissing checkmark and number dialogs 2025-12-02 15:24:04 -08:00
.gitignore Create top-level gradle project; remove duplicated gradle wrappers 2021-01-05 22:03:01 -06:00
build.gradle.kts Merge pull request #2209 from MihanEntalpo/automatic-backup-to-public-folder 2025-09-14 19:42:41 -05:00
lint-baseline.xml Update lint-baseline 2024-05-19 20:01:32 -05:00
proguard-rules.txt Flatten uhabits-android into a single gradle module 2021-01-03 20:44:55 -06:00