When deserializing a Note from JSON, the constructor was called first which initialized original tracking with empty values. Then the JSON fields were parsed and set, but hasChanges() would always return true because it compared the loaded content against empty originals. Solution: Call markAsSaved() after parsing in fromJson() to update the original tracking with the actual loaded data. |
||
|---|---|---|
| .. | ||
| src/main | ||
| build.gradle | ||
| proguard-rules.pro | ||