Exclude deleted tasks from search results

pull/493/head
Alex Baker 8 years ago
parent 77517ab879
commit cacf039ac9

@ -257,20 +257,11 @@ public class TaskListFragment extends InjectingFragment implements
query = query.trim(); query = query.trim();
String title = getString(R.string.FLA_search_filter, query); String title = getString(R.string.FLA_search_filter, query);
Filter savedFilter = new Filter(title, Filter savedFilter = new Filter(title,
new QueryTemplate().where new QueryTemplate().where(Criterion.and(
(Criterion.or(Task.NOTES. Task.DELETION_DATE.eq(0),
like( Criterion.or(
"%" + //$NON-NLS-1$ Task.NOTES.like("%" + query + "%"),
query + "%" Task.TITLE.like("%" + query + "%")))));
),
Task.TITLE.
like(
"%" + //$NON-NLS-1$
query + "%"
)
)
));
((TaskListActivity) getActivity()).onFilterItemClicked(savedFilter); ((TaskListActivity) getActivity()).onFilterItemClicked(savedFilter);
MenuItemCompat.collapseActionView(item); MenuItemCompat.collapseActionView(item);
return true; return true;

Loading…
Cancel
Save