mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
fixed FC when changing sort from unified inbox and all messages.
the new sort saves per account, and there is no active account for these folders. so also, there is no saving of the sort for the unified inbox nor all messages.
This commit is contained in:
parent
bfecdc9443
commit
f0c22510e2
@ -1210,11 +1210,12 @@ public class MessageList
|
||||
onToggleSortAscending();
|
||||
} else {
|
||||
mSortType = sortType;
|
||||
mAccount.setSortType(mSortType);
|
||||
mSortAscending = mAccount.isSortAscending(mSortType);
|
||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||
|
||||
mAccount.save(Preferences.getPreferences(this));
|
||||
if (mAccount != null) {
|
||||
mAccount.setSortType(mSortType);
|
||||
mSortAscending = mAccount.isSortAscending(mSortType);
|
||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||
mAccount.save(Preferences.getPreferences(this));
|
||||
}
|
||||
reSort();
|
||||
}
|
||||
}
|
||||
@ -1250,9 +1251,11 @@ public class MessageList
|
||||
|
||||
private void onToggleSortAscending() {
|
||||
mSortAscending = !mSortAscending;
|
||||
mAccount.setSortAscending(mSortType, mSortAscending);
|
||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||
mAccount.save(Preferences.getPreferences(this));
|
||||
if (mAccount != null) {
|
||||
mAccount.setSortAscending(mSortType, mSortAscending);
|
||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||
mAccount.save(Preferences.getPreferences(this));
|
||||
}
|
||||
reSort();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user