diff --git a/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java index d8c02dda3b..26f0a860c6 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/ExtendedListFragment.java @@ -93,7 +93,7 @@ public class ExtendedListFragment extends Fragment private static final String KEY_IS_GRID_VISIBLE = "IS_GRID_VISIBLE"; protected SwipeRefreshLayout mRefreshListLayout; - private SwipeRefreshLayout mRefreshGridLayout; + protected SwipeRefreshLayout mRefreshGridLayout; protected SwipeRefreshLayout mRefreshEmptyLayout; protected LinearLayout mEmptyListContainer; protected TextView mEmptyListMessage; diff --git a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java index 88268fbccc..0e1c87a981 100644 --- a/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java +++ b/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java @@ -1468,10 +1468,14 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi @Override public void onRefresh() { - super.onRefresh(); - if (searchEvent != null && searchFragment) { onMessageEvent(searchEvent); + + mRefreshListLayout.setRefreshing(false); + mRefreshGridLayout.setRefreshing(false); + mRefreshEmptyLayout.setRefreshing(false); + } else { + super.onRefresh(); } }