Remember to clear query in MessagesAdapter if we're not searching
Change-Id: I3b16f080c66f6ce025e41a7c459aa3cb94dbecd0
This commit is contained in:
parent
18d3b3de1e
commit
cd5da3c445
@ -1180,9 +1180,11 @@ public class MessageListFragment extends ListFragment
|
||||
lss = new Utility.ListStateSaver(lv);
|
||||
}
|
||||
|
||||
// If this is a search mailbox, set the query
|
||||
// If this is a search mailbox, set the query; otherwise, clear it
|
||||
if (mMailbox != null && mMailbox.mType == Mailbox.TYPE_SEARCH) {
|
||||
mListAdapter.setQuery(mMailbox.mDisplayName);
|
||||
} else {
|
||||
mListAdapter.setQuery(null);
|
||||
}
|
||||
|
||||
// Update the list
|
||||
|
Loading…
Reference in New Issue
Block a user