mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -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
|
@Override
|
||||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
// Use mListView.getAdapter() to get the WrapperListAdapter that includes the footer view.
|
if (view == mFooterView) {
|
||||||
if (mCurrentFolder != null && ((position + 1) == mListView.getAdapter().getCount())) {
|
if (mCurrentFolder != null) {
|
||||||
mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener);
|
mController.loadMoreMessages(mAccount, mFolderName, mAdapter.mListener);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user