1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Switch the sort order code around so it saves when reversing sort with a keyboard

This commit is contained in:
Jesse Vincent 2012-04-07 17:11:32 -04:00
parent 66528a0ca8
commit dd0ba7640c

View File

@ -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();
}