Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f9dd780 authored by cketti's avatar cketti
Browse files

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

parent 5f49195a
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -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);
        }