@Override
        public void onPageScrollStateChanged(final int state) {
            super.onPageScrollStateChanged(state);
            if (swipeRefreshLayout != null) {
                swipeRefreshLayout.setEnabled(state == ViewPager2.SCROLL_STATE_IDLE && isRefreshable);
            }
        }
Set if the content is refreshable. Defaults to true if the Activity contains a {@link SwipeRefreshLayout}.
main/src/main/java/cgeo/geocaching/activity/TabbedViewPagerActivity.java