Merge pull request #9433 from nextcloud/refresh

Refresh on favorite/shared view does search again, not showing root folder content
This commit is contained in:
Álvaro Brey 2021-12-03 15:31:40 +01:00 committed by GitHub
commit 53999c809c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1542,6 +1542,8 @@ public class OCFileListFragment extends ExtendedListFragment implements
if (remoteOperationResult.isSuccess() && remoteOperationResult.getResultData() != null if (remoteOperationResult.isSuccess() && remoteOperationResult.getResultData() != null
&& !isCancelled() && searchFragment) { && !isCancelled() && searchFragment) {
searchEvent = event;
if (remoteOperationResult.getResultData() == null || ((List) remoteOperationResult.getResultData()).isEmpty()) { if (remoteOperationResult.getResultData() == null || ((List) remoteOperationResult.getResultData()).isEmpty()) {
setEmptyView(event); setEmptyView(event);
} else { } else {
@ -1550,7 +1552,6 @@ public class OCFileListFragment extends ExtendedListFragment implements
storageManager, storageManager,
mFile, mFile,
true); true);
searchEvent = event;
} }
final ToolbarActivity fileDisplayActivity = (ToolbarActivity) getActivity(); final ToolbarActivity fileDisplayActivity = (ToolbarActivity) getActivity();