Changed sort_options array back to user-friendly text (Most Recent, A to Z, etc.)
and added position-based mapping in NotesListFragment to convert between display
labels and internal storage codes.
Added helper methods:
- getSortCodeFromPosition(int): Maps spinner position to internal code
- getPositionFromSortCode(String): Maps internal code back to spinner position
This provides much better UX while maintaining full functionality.
The sort spinner used display strings like 'Most Recent' but the code expected
internal codes like 'MOST_RECENT'. This mismatch caused sorting to always fail.
Changed sort_options array to use exact values expected by NotesStorage.sortNotes():
Features:
- Create, edit, and delete notes (text or checklist)
- Sort notes by date or alphabetically
- Dark theme UI with Material Design components
- Checklist items with checkboxes and progress tracking
- Floating action buttons for adding/deleting checklist items
- Auto-save functionality
- Swipe to delete from list
Technical:
- Android Studio project with Gradle build system
- SQLite database via Room-like storage (SharedPreferences)
- RecyclerView for efficient note/item lists
- Fragment-based navigation
Bug Fixes:
- Fixed new notes not appearing in main view after creation
- Added onResume() refresh to NotesListFragment
- Corrected ID assignment and counter logic in NotesStorage