1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 22:21:18 +00:00

Refactoring

This commit is contained in:
M66B 2021-08-06 10:25:24 +02:00
parent 72956170b2
commit 1905fbdcf1

View file

@ -166,7 +166,8 @@ public class FragmentDialogSearch extends FragmentDialogBase {
adapter.setCursorToStringConverter(new SimpleCursorAdapter.CursorToStringConverter() {
@Override
public CharSequence convertToString(Cursor cursor) {
return cursor.getString(cursor.getColumnIndex("suggestion"));
int colSuggestion = cursor.getColumnIndex("suggestion");
return cursor.getString(colSuggestion);
}
});