am 8b30d335
: Merge "Highlight the first result for search." into ics-mr1
* commit '8b30d335c1d2abe9e7ee79f97b834fdcb7a2c9c3': Highlight the first result for search.
This commit is contained in:
commit
490f627413
@ -1320,6 +1320,13 @@ public class MessageListFragment extends ListFragment
|
||||
mIsRefreshable = cursor.mIsRefreshable;
|
||||
mCountTotalAccounts = cursor.mCountTotalAccounts;
|
||||
|
||||
// If this is a search result, open the first message.
|
||||
if (UiUtilities.useTwoPane(getActivity()) && mIsFirstLoad && mListContext.isSearch()
|
||||
&& cursor.getCount() > 0) {
|
||||
cursor.moveToFirst();
|
||||
onMessageOpen(getMailboxId(), cursor.getLong(MessagesAdapter.COLUMN_ID));
|
||||
}
|
||||
|
||||
// Suspend message notifications as long as we're resumed
|
||||
adjustMessageNotification(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user