Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20284] Android: Function insertAt on Scroll Views causes crash

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-02-23T04:23:46.000+0000
Affected Version/sRelease 5.1.2
Fix Version/sRelease 5.4.0
ComponentsAndroid
Labelsandroid, scrollView
ReporterGiorgio Pagnoni
AssigneeHieu Pham
Created2016-01-27T10:59:11.000+0000
Updated2016-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});

Comments

  1. Hieu Pham 2016-02-22

    master PR: https://github.com/appcelerator/titanium_mobile/pull/7767
  2. Ashraf Abu 2016-02-23

    PR merged.
  3. Lokesh Choudhary 2016-06-14

    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

JSON Source