mirror of https://github.com/M66B/FairEmail.git
parent
7fff466e17
commit
fb3eb4f909
|
@ -129,8 +129,9 @@ public class SearchViewEx extends SearchView {
|
||||||
@Override
|
@Override
|
||||||
public boolean onSuggestionClick(int position) {
|
public boolean onSuggestionClick(int position) {
|
||||||
Cursor cursor = (Cursor) getSuggestionsAdapter().getItem(position);
|
Cursor cursor = (Cursor) getSuggestionsAdapter().getItem(position);
|
||||||
setQuery(cursor.getString(1), true);
|
long id = cursor.getInt(0);
|
||||||
return false;
|
setQuery(cursor.getString(1), id != -1);
|
||||||
|
return (id == -1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue