michaelprimez / searchablespinner

Searchable Spinner
Apache License 2.0
314 stars 102 forks source link

Mistake in SimpleListAdapter get item #11

Closed NivaLevy closed 7 years ago

NivaLevy commented 7 years ago

@Override public Object getItem(int position) { if (mStrings == null && position > 0) return mStrings.get(position); else return null; } *****should be:** @Override public Object getItem(int position) { if (mStrings != null && position > 0) return mStrings.get(position - 1); else return null; }**

michaelprimez commented 7 years ago

Hi @NivaLevy

Thanks for using the library, yes you right, it's a mistake i fix it