You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
If the spinner uses a selected text formatter with a type, calling setSelectedIndex crashes:
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Locale
...
at org.angmarch.views.NiceSpinner.setTextInternal(NiceSpinner.java:307)
at org.angmarch.views.NiceSpinner.setSelectedIndex(NiceSpinner.java:323)
The problem is setSelectedIndex calls setTextInternal(selectedTextFormatter.format(adapter.getItemInDataset(position)).toString()); which then calls setText(selectedTextFormatter.format(item)); but item is already a string and not the expected type.
The text was updated successfully, but these errors were encountered:
If the spinner uses a selected text formatter with a type, calling
setSelectedIndex
crashes:Example:
The problem is
setSelectedIndex
callssetTextInternal(selectedTextFormatter.format(adapter.getItemInDataset(position)).toString());
which then callssetText(selectedTextFormatter.format(item));
but item is already a string and not the expected type.The text was updated successfully, but these errors were encountered: