Don't crash if "footer view" is clicked in search results
Fixes issue 3071
This commit is contained in:
parent
f2283aa91e
commit
01937d4ab8
1 changed files with 4 additions and 3 deletions
|
@ -567,9 +567,10 @@ public class MessageList
|
|||
|
||||
@Override
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
// Use mListView.getAdapter() to get the WrapperListAdapter that includes the footer view.
|
||||
if (mCurrentFolder != null && ((position + 1) == mListView.getAdapter().getCount())) {
|
||||
mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener);
|
||||
if (view == mFooterView) {
|
||||
if (mCurrentFolder != null) {
|
||||
mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue