NotePad
NotePad copied to clipboard
[Bug]: Notes Not Visible After Deleting a Tag Used for Filtering
Bug Description
If a label is deleted while it is being used to filter notes, newly created notes do not appear in the list until the filter is manually cleared. This creates confusion as the notes are still saved but not shown.
To Reproduce
Steps to reproduce the behavior:
- Create a new label (e.g., label "a").
- Switch to filtering notes by label "a".
- Delete label "a".
- Create a new note.
- Observe that the new note does not appear in the list.
Expected Behavior
After deleting a label that is currently being used as a filter, the app should automatically clear the filter so that all notes are visible again.
Screen Recording
https://github.com/user-attachments/assets/6dd688fc-19aa-49c8-80e5-02e934d4d42f
Smartphone:
- Device: generic_x86_64 (Android Studio x86 emulator)
- OS: Android 9.0 (Default Android System Image)
- Version: 1.3.7
Suggested Fix
After a label is deleted, check if the current filter is using that label. If so, automatically reset or clear the label filter to avoid an empty or misleading note list.