Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd0ba764 authored by Jesse Vincent's avatar Jesse Vincent
Browse files

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

parent 66528a0c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
@@ -1262,6 +1260,9 @@ public class MessageList
        sortAscending = mController.isSortAscending(sortType);
        sortDateAscending = mController.isSortAscending(SORT_TYPE.SORT_DATE);
            
        mAccount.setSortAscending( sortAscending);
        mAccount.save(Preferences.getPreferences(this));

        reSort();
    }