Skip to content

Commit

Permalink
Fixed picker issue where set type caused a reset of a valid array as …
Browse files Browse the repository at this point in the history
  • Loading branch information
shai-almog committed Jul 28, 2018
1 parent a09fbde commit 03f82ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodenameOne/src/com/codename1/ui/spinner/Picker.java
Expand Up @@ -778,7 +778,7 @@ public void setType(int type) {
}
break;
case Display.PICKER_TYPE_STRINGS:
if(!Util.instanceofObjArray(value)) {
if(!Util.instanceofObjArray(value) && !(value instanceof String[])) {
setStrings(new String[] {" "});
}
break;
Expand Down

0 comments on commit 03f82ec

Please sign in to comment.