Fixed search when browse disabled

This commit is contained in:
M66B
2019-01-22 16:28:13 +00:00
parent 7f16c1a23a
commit 9272b58c39
2 changed files with 6 additions and 5 deletions

View File

@@ -95,8 +95,8 @@ public class ViewModelBrowse extends ViewModel {
DB db = DB.getInstance(state.context);
final List<EntityFolder> folders = db.folder().getFolders(
state.fid < 0 ? null : state.fid, state.search == null);
Log.i("Search fid=" + (state.fid < 0 ? null : state.fid) + " browse=" + (state.search == null) + " count=" + folders.size());
state.fid < 0 ? null : state.fid, state.search != null);
Log.i("Search fid=" + (state.fid < 0 ? null : state.fid) + " search=" + (state.search == null) + " count=" + folders.size());
if (folders.size() == 0)
return;