mirror of
https://github.com/nextcloud/android.git
synced 2024-12-19 15:33:00 +03:00
fix swipe to refresh
This commit is contained in:
parent
62818760c1
commit
5a60a5a531
2 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue