[TIMOB-24822] Android: TableView with sections will error on Android N
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2017-06-26T23:29:39.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 6.2.0 |
| Components | Android |
| Labels | n/a |
| Reporter | Gary Mathews |
| Assignee | Gary Mathews |
| Created | 2017-06-14T21:50:39.000+0000 |
| Updated | 2017-07-20T18:44:00.000+0000 |
Description
- TableView with sections will throw an error on Android N
var win = Ti.UI.createWindow({
backgroundColor: 'gray',
layout: 'vertical'
}),
tv = Ti.UI.createTableView({
headerTitle: 'TableView',
data: [
{
title: 'Apples',
hasChild: true
}, {
title: 'Bananas'
}
],
height: Ti.UI.SIZE
}),
ls = Ti.UI.createListSection({
headerTitle: 'ListView'
}),
lv = Ti.UI.createListView({
height: Ti.UI.SIZE
});
ls.setItems([
{
properties: {
title: 'Apples',
accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK
}
}, {
properties: {
title: 'Bananas',
accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_DETAIL
}
}
]);
lv.sections = [ls];
win.add(tv);
win.add(lv);
win.open();
master: https://github.com/appcelerator/titanium_mobile/pull/9144
Verified fix in SDK Version: 6.2.0.v20170719160617. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9144