show "shared" again (#4249)

show "shared" again
This commit is contained in:
Tobias Kaminsky 2019-07-23 07:01:54 +02:00 committed by GitHub
commit 040b460811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1676,7 +1676,9 @@ public class OCFileListFragment extends ExtendedListFragment implements
}
private boolean isSearchEventSet(SearchEvent event) {
return event != null && !TextUtils.isEmpty(event.getSearchQuery()) && event.getSearchType() != null
return event != null && event.getSearchType() != null &&
(!TextUtils.isEmpty(event.getSearchQuery()) ||
event.searchType == SearchRemoteOperation.SearchType.SHARED_SEARCH)
&& event.getUnsetType() != null;
}
}