Don't use conversion to uppercase when searching, it breaks non-ascii searching for other languages

pull/14/head
Sam Bosley 12 years ago
parent fe19807b3b
commit 685c74dd65

@ -33,7 +33,6 @@ import android.widget.TextView;
import com.timsu.astrid.R;
import com.todoroo.andlib.service.Autowired;
import com.todoroo.andlib.service.DependencyInjectionService;
import com.todoroo.andlib.sql.Functions;
import com.todoroo.andlib.sql.QueryTemplate;
import com.todoroo.andlib.utility.AndroidUtilities;
import com.todoroo.andlib.utility.DialogUtilities;
@ -185,9 +184,9 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
String query = getIntent().getStringExtra(SearchManager.QUERY).trim();
String title = getString(R.string.FLA_search_filter, query);
savedFilter = new Filter(title, title,
new QueryTemplate().where(Functions.upper(Task.TITLE).like(
new QueryTemplate().where(Task.TITLE.like(
"%" + //$NON-NLS-1$
query.toUpperCase() + "%")), //$NON-NLS-1$
query + "%")), //$NON-NLS-1$
null);
}

Loading…
Cancel
Save