mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -05:00
Switch the sort order code around so it saves when reversing sort with a keyboard
This commit is contained in:
parent
66528a0ca8
commit
dd0ba7640c
@ -1211,8 +1211,6 @@ public class MessageList
|
|||||||
|
|
||||||
private void changeSort(SORT_TYPE newSortType) {
|
private void changeSort(SORT_TYPE newSortType) {
|
||||||
if (sortType == newSortType) {
|
if (sortType == newSortType) {
|
||||||
mAccount.setSortAscending( !(mController.isSortAscending(newSortType) ));
|
|
||||||
mAccount.save(Preferences.getPreferences(this));
|
|
||||||
onToggleSortAscending();
|
onToggleSortAscending();
|
||||||
} else {
|
} else {
|
||||||
sortType = newSortType;
|
sortType = newSortType;
|
||||||
@ -1262,6 +1260,9 @@ public class MessageList
|
|||||||
sortAscending = mController.isSortAscending(sortType);
|
sortAscending = mController.isSortAscending(sortType);
|
||||||
sortDateAscending = mController.isSortAscending(SORT_TYPE.SORT_DATE);
|
sortDateAscending = mController.isSortAscending(SORT_TYPE.SORT_DATE);
|
||||||
|
|
||||||
|
mAccount.setSortAscending( sortAscending);
|
||||||
|
mAccount.save(Preferences.getPreferences(this));
|
||||||
|
|
||||||
reSort();
|
reSort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user