[TIMOB-20284] Android: Function insertAt on Scroll Views causes crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-02-23T04:23:46.000+0000 |
Affected Version/s | Release 5.1.2 |
Fix Version/s | Release 5.4.0 |
Components | Android |
Labels | android, scrollView |
Reporter | Giorgio Pagnoni |
Assignee | Hieu Pham |
Created | 2016-01-27T10:59:11.000+0000 |
Updated | 2016-06-14T22:46:11.000+0000 |
Description
"insertAt" works as expected with Windows and Views, but with Scroll View it causes the application to crash with an error like
dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40bb0378)
Ex.
var sview = Ti.UI.createScrollView{
scrollType : 'vertical',
layout : 'vertical',
showVerticalScrollIndicator : true,
width : '100%'
});
var item = new View({});
sview.insertAt({view: item});
master PR: https://github.com/appcelerator/titanium_mobile/pull/7767
PR merged.
Verified the fix.
insertAt()
does not cause a crash & works as expected. Closing. Environment: Appc Studio : 4.6.0.201605201934 Ti SDK : 5.4.0.v20160608165242 Ti CLI : 5.0.8 Alloy : 1.8.7 MAC El Capitan : 10.11.4 Appc NPM : 4.2.7-2 Appc CLI : 5.4.0-15 Node: 4.4.4 Nexus 6 - Android 6.0.0