[TIMOB-25517] Android: TableViewProxy unable to create table view row proxy for object
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-12-15T20:48:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.0.1 |
Components | Android |
Labels | android, merge-7.0.1 |
Reporter | Patrick Reichardt |
Assignee | Yordan Banev |
Created | 2017-11-15T15:15:27.000+0000 |
Updated | 2017-12-20T22:02:04.000+0000 |
Description
Adding a TableViewSection to a TableView leads to the following error on Android and the table is not displayed. The code under iOS displays the Table (see screenshots)
[ERROR] TableViewProxy: (main) [38,38] Unable to create table view row proxy for object, likely an error in the type of the object passed in...
index.xml
<Alloy>
<Window backgroundColor="white">
<TableView id="table">
</TableView>
</Window>
</Alloy>
tableViewSection.xml
<Alloy>
<TableViewSection id="tableSection">
</TableViewSection>
</Alloy>
index.js
var firstSection = Alloy.createController('tableViewSection', { headerTitle: 'First section' }).getView();
$.table.insertSectionBefore(0, firstSection);
$.index.open();
Attachments
File | Date | Size |
---|---|---|
android-screenshot.png | 2017-11-15T14:46:29.000+0000 | 328434 |
iPhone-8-Plus-screenshot.png | 2017-11-15T14:46:35.000+0000 | 93240 |
TableViewApp.zip | 2017-11-15T15:09:21.000+0000 | 1683 |
PR: https://github.com/appcelerator/titanium_mobile/pull/9609
CR is good, unit test works now, so that's good. Just need QE's blessing to merge (I assume we need to wait for 7.0.1 at this point).
7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9640
FR passed for master & backport. Waiting for merge to get enabled.
Resolving as 7.0.1 PR is merged. Will merge master later.
Master PR merged.
Closing ticket. Verified Fix in SDK version 7.0.1.v20171218104141 and 7.1.0.v20171220095337. Test and other information can be found at: Master: https://github.com/appcelerator/titanium_mobile/pull/9609 7.0.x: https://github.com/appcelerator/titanium_mobile/pull/9640