From 8f9dd78012b8fe373a8fb704a60244d50a39ad0b Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 23 Apr 2013 18:55:24 +0200 Subject: [PATCH] Always enable "pull to refresh" when "check mail" action is shown --- src/com/fsck/k9/fragment/MessageListFragment.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 60c57d20a..1b44c35e1 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -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); }