Fix: Sort menu now works correctly
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():
This commit is contained in:
parent
3af91ed8c0
commit
35bddd27c4
|
|
@ -3,9 +3,9 @@
|
||||||
<string name="app_name">Notes</string>
|
<string name="app_name">Notes</string>
|
||||||
|
|
||||||
<string-array name="sort_options">
|
<string-array name="sort_options">
|
||||||
<item>Most Recent</item>
|
<item>MOST_RECENT</item>
|
||||||
<item>Oldest First</item>
|
<item>OLDEST_FIRST</item>
|
||||||
<item>A to Z</item>
|
<item>A_TO_Z</item>
|
||||||
<item>Z to A</item>
|
<item>Z_TO_A</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue