mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-24 02:12:15 -05:00
Show/hide ListView footer depending on message list type
Fixes issue 3946
This commit is contained in:
parent
fb3cd234fa
commit
0aa513429a
@ -729,6 +729,9 @@ public class MessageList
|
|||||||
mCurrentFolder = mAdapter.getFolder(mFolderName, mAccount);
|
mCurrentFolder = mAdapter.getFolder(mFolderName, mAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hide "Load up to x more" footer for search views
|
||||||
|
mFooterView.setVisibility((mQueryString != null) ? View.GONE : View.VISIBLE);
|
||||||
|
|
||||||
mController = MessagingController.getInstance(getApplication());
|
mController = MessagingController.getInstance(getApplication());
|
||||||
mListView.setAdapter(mAdapter);
|
mListView.setAdapter(mAdapter);
|
||||||
}
|
}
|
||||||
@ -2382,9 +2385,6 @@ public class MessageList
|
|||||||
private View getFooterView(ViewGroup parent) {
|
private View getFooterView(ViewGroup parent) {
|
||||||
if (mFooterView == null) {
|
if (mFooterView == null) {
|
||||||
mFooterView = mInflater.inflate(R.layout.message_list_item_footer, parent, false);
|
mFooterView = mInflater.inflate(R.layout.message_list_item_footer, parent, false);
|
||||||
if (mQueryString != null) {
|
|
||||||
mFooterView.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
mFooterView.setId(R.layout.message_list_item_footer);
|
mFooterView.setId(R.layout.message_list_item_footer);
|
||||||
FooterViewHolder holder = new FooterViewHolder();
|
FooterViewHolder holder = new FooterViewHolder();
|
||||||
holder.progress = (ProgressBar) mFooterView.findViewById(R.id.message_list_progress);
|
holder.progress = (ProgressBar) mFooterView.findViewById(R.id.message_list_progress);
|
||||||
|
Loading…
Reference in New Issue
Block a user