[TIMOB-24981] Android: .remove() TableView object with ImageViews crashes the app.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-08-02T13:15:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android |
Reporter | grazianogrespan |
Assignee | Gary Mathews |
Created | 2017-07-18T12:48:24.000+0000 |
Updated | 2017-08-02T17:37:43.000+0000 |
Description
If I try to remove a TableView that has a TableViewRow with an ImageView the app will crash.
This bug affects sdk 6.1.1GA, I have tried to run this snippet on 6.0.4GA and it works without errors.
var win = Ti.UI.createWindow();
var tblRow = Ti.UI.createTableViewRow({
backgroundColor:"green" ,
height:30
});
var tbl = Ti.UI.createTableView({
height:100,
top:10,
left:10,
right:10,
data:[tblRow],
backgroundColor:"red"
});
var imgView = Ti.UI.createImageView({
image: "https://www.appcelerator.com/wp-content/themes/appc-rwd/assets/media/images/axway-logo.png",
width:20,
height:20
});
var removeButton = Ti.UI.createButton({
title:"REMOVE TABLE",
height:50,
width:150
});
removeButton.addEventListener("click",function(){
win.remove(tbl);
});
tblRow.add(imgView);
win.add(tbl);
win.add(removeButton);
win.open();
Attachments
File | Date | Size |
---|---|---|
errors.txt | 2017-07-18T12:34:42.000+0000 | 3423 |
Closing ticket as duplicate.