Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void showProgress(boolean visible)
- {
- // show pull to refresh progress bar
- SwipeRefreshLayout contentSwipeRefreshLayout = (SwipeRefreshLayout) mRootView.findViewById(R.id.container_content_swipeable);
- SwipeRefreshLayout offlineSwipeRefreshLayout = (SwipeRefreshLayout) mRootView.findViewById(R.id.container_offline_swipeable);
- SwipeRefreshLayout emptySwipeRefreshLayout = (SwipeRefreshLayout) mRootView.findViewById(R.id.container_empty_swipeable);
- contentSwipeRefreshLayout.setRefreshing(visible);
- offlineSwipeRefreshLayout.setRefreshing(visible);
- emptySwipeRefreshLayout.setRefreshing(visible);
- if(!WebViewAppConfig.PULL_TO_REFRESH)
- {
- contentSwipeRefreshLayout.setEnabled(false);
- offlineSwipeRefreshLayout.setEnabled(false);
- emptySwipeRefreshLayout.setEnabled(false);
- }
- mProgress = visible;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement