@Override
            protected void publishResults(final CharSequence constraint, final FilterResults filterResults) {
                if (filterResults != null && filterResults.count > 0) {
                    searchTerm = constraint.toString().toLowerCase();
                    suggestions = (String[]) filterResults.values;
                    notifyDataSetChanged();
                } else {
                    suggestions = new String[0];
                    notifyDataSetInvalidated();
                }
            }
Highlight the selected text (case insensitive) in the given TextView
main/src/main/java/cgeo/geocaching/search/SearchAutoCompleteAdapter.java