From 014691bac98f347e0f79ed9ba26216c0e0266180 Mon Sep 17 00:00:00 2001 From: Daniel Applebaum Date: Thu, 5 Mar 2009 08:08:37 +0000 Subject: [PATCH] Fix reverse sorting when in sort-by-date mode. --- src/com/android/email/activity/FolderMessageList.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/com/android/email/activity/FolderMessageList.java b/src/com/android/email/activity/FolderMessageList.java index 9825d29b0..9530df294 100644 --- a/src/com/android/email/activity/FolderMessageList.java +++ b/src/com/android/email/activity/FolderMessageList.java @@ -897,8 +897,11 @@ public class FolderMessageList extends ExpandableListActivity private void onToggleSortAscending() { - sortAscending = !sortAscending; - MessagingController.getInstance(getApplication()).setSortAscending(sortType, sortAscending); + MessagingController.getInstance(getApplication()).setSortAscending(sortType, !sortAscending); + + sortAscending = MessagingController.getInstance(getApplication()).isSortAscending(sortType); + sortDateAscending = MessagingController.getInstance(getApplication()).isSortAscending(SORT_TYPE.SORT_DATE); + reSort(); }