SearchableSpinner icon indicating copy to clipboard operation
SearchableSpinner copied to clipboard

setSelection(position) inside Activity

Open abhishekraics001 opened this issue 6 years ago • 1 comments

I am trying to implement setSelection(position) inside Activity but every time it crashes the app. Please suggest and update if any one resolved this issue

abhishekraics001 avatar Mar 16 '18 11:03 abhishekraics001

@abhishekraics001 I've added the following to the SearchableSpinner class, and it seems to be working so far:

@override public void setSelection(int position) { if (position != NO_ITEM_SELECTED) { if (!_isDirty) { _isDirty = true; setAdapter(_arrayAdapter); super.setSelection(position); } } }

dhavalshah60 avatar Aug 29 '18 07:08 dhavalshah60