1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Fixed selecting search suggestion

This commit is contained in:
M66B 2020-04-09 20:24:35 +02:00
parent c9401f61c7
commit c27d170ab4

View file

@ -79,6 +79,13 @@ public class FragmentDialogSearch extends FragmentDialogBase {
}
});
adapter.setCursorToStringConverter(new SimpleCursorAdapter.CursorToStringConverter() {
@Override
public CharSequence convertToString(Cursor cursor) {
return cursor.getString(cursor.getColumnIndex("suggestion"));
}
});
etQuery.setAdapter(adapter);
ibInfo.setOnClickListener(new View.OnClickListener() {