mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 19:52:17 -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();
|
onToggleSortAscending();
|
||||||
} else {
|
} else {
|
||||||
mSortType = sortType;
|
mSortType = sortType;
|
||||||
mAccount.setSortType(mSortType);
|
if (mAccount != null) {
|
||||||
mSortAscending = mAccount.isSortAscending(mSortType);
|
mAccount.setSortType(mSortType);
|
||||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
mSortAscending = mAccount.isSortAscending(mSortType);
|
||||||
|
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||||
mAccount.save(Preferences.getPreferences(this));
|
mAccount.save(Preferences.getPreferences(this));
|
||||||
|
}
|
||||||
reSort();
|
reSort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1250,9 +1251,11 @@ public class MessageList
|
|||||||
|
|
||||||
private void onToggleSortAscending() {
|
private void onToggleSortAscending() {
|
||||||
mSortAscending = !mSortAscending;
|
mSortAscending = !mSortAscending;
|
||||||
mAccount.setSortAscending(mSortType, mSortAscending);
|
if (mAccount != null) {
|
||||||
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
mAccount.setSortAscending(mSortType, mSortAscending);
|
||||||
mAccount.save(Preferences.getPreferences(this));
|
mSortDateAscending = mAccount.isSortAscending(SortType.SORT_DATE);
|
||||||
|
mAccount.save(Preferences.getPreferences(this));
|
||||||
|
}
|
||||||
reSort();
|
reSort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user