I have noticed an intermittent issue with the app's "SharedPreferences".
Occasionally, after a fresh installation or when starting the app, the "SharedPreferences" do not appear to be loaded correctly. As a result, the notification that should be triggered when a note is modified is not shown, even though the corresponding setting is enabled.
Interestingly, if I disable the notification setting and then enable it again, everything starts working as expected. It seems that the preference is then properly initialized and the notification is triggered correctly from that point on.
Steps to reproduce:
- Install the app (or occasionally start the app).
- Modify an existing note.
- Observe that no notification is shown, although notifications are enabled.
- Disable the notification setting.
- Enable the notification setting again.
- Modify a note once more.
- The notification now appears as expected.
Expected behavior:
The "SharedPreferences" should always be loaded correctly during installation and on every app start, so that the notification feature works immediately without requiring the user to toggle the setting.
I have noticed an intermittent issue with the app's "SharedPreferences".
Occasionally, after a fresh installation or when starting the app, the "SharedPreferences" do not appear to be loaded correctly. As a result, the notification that should be triggered when a note is modified is not shown, even though the corresponding setting is enabled.
Interestingly, if I disable the notification setting and then enable it again, everything starts working as expected. It seems that the preference is then properly initialized and the notification is triggered correctly from that point on.
Steps to reproduce:
Expected behavior:
The "SharedPreferences" should always be loaded correctly during installation and on every app start, so that the notification feature works immediately without requiring the user to toggle the setting.