|
|
@ -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;
|
|
|
|