mirror of
https://github.com/nextcloud/android.git
synced 2024-12-20 07:52:18 +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";
|
private static final String KEY_IS_GRID_VISIBLE = "IS_GRID_VISIBLE";
|
||||||
|
|
||||||
protected SwipeRefreshLayout mRefreshListLayout;
|
protected SwipeRefreshLayout mRefreshListLayout;
|
||||||
private SwipeRefreshLayout mRefreshGridLayout;
|
protected SwipeRefreshLayout mRefreshGridLayout;
|
||||||
protected SwipeRefreshLayout mRefreshEmptyLayout;
|
protected SwipeRefreshLayout mRefreshEmptyLayout;
|
||||||
protected LinearLayout mEmptyListContainer;
|
protected LinearLayout mEmptyListContainer;
|
||||||
protected TextView mEmptyListMessage;
|
protected TextView mEmptyListMessage;
|
||||||
|
|
|
@ -1468,10 +1468,14 @@ public class OCFileListFragment extends ExtendedListFragment implements OCFileLi
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onRefresh() {
|
public void onRefresh() {
|
||||||
super.onRefresh();
|
|
||||||
|
|
||||||
if (searchEvent != null && searchFragment) {
|
if (searchEvent != null && searchFragment) {
|
||||||
onMessageEvent(searchEvent);
|
onMessageEvent(searchEvent);
|
||||||
|
|
||||||
|
mRefreshListLayout.setRefreshing(false);
|
||||||
|
mRefreshGridLayout.setRefreshing(false);
|
||||||
|
mRefreshEmptyLayout.setRefreshing(false);
|
||||||
|
} else {
|
||||||
|
super.onRefresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue