mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Don't crash if "footer view" is clicked in search results
Fixes issue 3071
This commit is contained in:
parent
f2283aa91e
commit
01937d4ab8
@ -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 New Issue
Block a user