1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Always enable "pull to refresh" when "check mail" action is shown

This commit is contained in:
cketti 2013-04-23 18:55:24 +02:00
parent 5f49195a0a
commit 8f9dd78012

View File

@ -1072,7 +1072,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
View loadingView = inflater.inflate(R.layout.message_list_loading, null);
mPullToRefreshView.setEmptyView(loadingView);
if (isPullToRefreshAllowed()) {
if (isCheckMailSupported()) {
if (mSearch.isManualSearch() && mAccount.allowRemoteSearch()) {
// "Pull to search server"
mPullToRefreshView.setOnRefreshListener(
@ -1104,13 +1104,6 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
setPullToRefreshEnabled(false);
}
/**
* Returns whether or not pull-to-refresh is allowed in this message list.
*/
private boolean isPullToRefreshAllowed() {
return mSingleFolderMode;
}
/**
* Enable or disable pull-to-refresh.
*
@ -3289,7 +3282,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
mPullToRefreshView.setEmptyView(null);
// Enable pull-to-refresh if allowed
if (isPullToRefreshAllowed()) {
if (isCheckMailSupported()) {
setPullToRefreshEnabled(true);
}