Skip to content

Commit

Permalink
Merge pull request #5238 from bijupmb/TIMOB-16207-BooleanToaStringThr…
Browse files Browse the repository at this point in the history
…owsClassCastException

[TIMOB-16207] parse string to boolean
  • Loading branch information
hieupham007 committed Mar 6, 2014
2 parents f06690e + a1f82cf commit f722a95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public boolean onEditorAction(TextView v, int actionId, KeyEvent keyEvent)
fireEvent(TiC.EVENT_RETURN, data);
}

Boolean enableReturnKey = (Boolean) proxy.getProperty(TiC.PROPERTY_ENABLE_RETURN_KEY);
Boolean enableReturnKey = TiConvert.toBoolean(proxy.getProperty(TiC.PROPERTY_ENABLE_RETURN_KEY));
if (enableReturnKey != null && enableReturnKey && v.getText().length() == 0) {
return true;
}
Expand Down

0 comments on commit f722a95

Please sign in to comment.