+ public abstract SwipeRefreshLayout getRefreshLayout();
+ @NonNull
+ public MainActivity getMainActivity() {
+ return (MainActivity) requireActivity();
+ }
+ protected void themeChanged(Integer counter) {
+ getRefreshLayout().setColorSchemeColors(Colors.getSwipeCircleColors());
+ }
+ public void onBackgroundTaskRunningChanged(Boolean isRunning) {
+ if (getActivity() == null)
+ return;
+ SwipeRefreshLayout l = getRefreshLayout();
+ if (l == null)
+ return;
+ l.setRefreshing(isRunning);
+ }