fix swipe to refresh

This commit is contained in:
tobiasKaminsky 2017-05-05 09:18:56 +02:00
parent 62818760c1
commit 5a60a5a531
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 7 additions and 3 deletions

View file

@ -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;

View file

@ -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();
}
}