mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -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) {
|
||||
if (sortType == newSortType) {
|
||||
mAccount.setSortAscending( !(mController.isSortAscending(newSortType) ));
|
||||
mAccount.save(Preferences.getPreferences(this));
|
||||
onToggleSortAscending();
|
||||
} else {
|
||||
sortType = newSortType;
|
||||
@ -1261,6 +1259,9 @@ public class MessageList
|
||||
|
||||
sortAscending = mController.isSortAscending(sortType);
|
||||
sortDateAscending = mController.isSortAscending(SORT_TYPE.SORT_DATE);
|
||||
|
||||
mAccount.setSortAscending( sortAscending);
|
||||
mAccount.save(Preferences.getPreferences(this));
|
||||
|
||||
reSort();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user