[TIMOB-24192] Android: PickerRow.setColor is not a function
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-12-20T19:20:10.000+0000 |
Affected Version/s | Release 6.1.0 |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | n/a |
Reporter | Frankie Merzadyan |
Assignee | Gary Mathews |
Created | 2016-12-03T03:09:44.000+0000 |
Updated | 2017-01-03T23:50:20.000+0000 |
Description
Android: PickerRow.setColor is not a function despite mentions in [docs](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.PickerRow). Issue is not seen in iOS.
*TEST CASE*
try {
var w = Ti.UI.createWindow({
exitOnClose: true,
layout: 'vertical',
backgroundColor: 'black'
}),
p = Ti.UI.createPicker({
top: 50
}),
apple = Ti.UI.createPickerRow({
title: 'apple',
color: 'red'
}),
grape = Ti.UI.createPickerRow({
title: 'grape',
color: 'purple'
}),
d = [apple, grape];
apple.setColor("green");
p.add(d);
p.selectionIndicator = true;
w.add(p);
w.open();
} catch (err) {
Ti.API.debug("test msg error " + err);
}
*EXPECTED*
_apple_ color set to green and _grape_ color set to purple.
*ACTUAL*
Error D/TiAPI: test msg error TypeError: apple.setColor is not a function
on Android and _apple_ color set to green and _grape_ color set to purple on iOS.
master: https://github.com/appcelerator/titanium_mobile/pull/8669
Verified fixed, error is no longer shown and the apple color is set to green and the grape color is set to purple. *Environement*