Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timob-16063: Android: Field Service App crashes with java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean #5159

Merged
merged 2 commits into from
Dec 21, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void processProperties(KrollDict d)

boolean clickable = true;
if (d.containsKey(TiC.PROPERTY_TOUCH_ENABLED)) {
clickable = (Boolean) d.get(TiC.PROPERTY_TOUCH_ENABLED);
clickable = TiConvert.toBoolean(proxy.getProperty(TiC.PROPERTY_TOUCH_ENABLED), true);
}
if (clickable) {
tableView.setOnItemClickListener(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ protected void registerForTouch(final View touchable)

boolean clickable = true;
if (proxy.hasProperty(TiC.PROPERTY_TOUCH_ENABLED)) {
clickable = (Boolean) proxy.getProperty(TiC.PROPERTY_TOUCH_ENABLED);
clickable = TiConvert.toBoolean(proxy.getProperty(TiC.PROPERTY_TOUCH_ENABLED), true);
}

if (clickable) {
Expand Down