GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-01T18:12:21.000+0000 |
Affected Version/s | Release 2.1.2, Release 3.1.0 |
Fix Version/s | 2013 Sprint 09 API, Release 3.2.0 |
Components | Android |
Labels | api, community, exalture, module_tableviewrow, qe-testadded |
Reporter | Mitchell Amihod |
Assignee | Sunila |
Created | 2012-08-22T23:48:10.000+0000 |
Updated | 2013-10-14T11:00:08.000+0000 |
Bug: Cannot remove child view from inside TableViewRow
2 cases
A: .remove() View inside TableViewRow - Crash (
http://pastie.org/4572849 )
B: .remove() View nested in View inside TableViewRow - No Crash, but no effect
The same works fine on iOS.
There is no method as "remove" for a tableviewrow as can be confirmed from the docs here: http://docs.appcelerator.com/titanium/2.1/index.html#!/api/Titanium.UI.TableViewRow
Um. The page you link to clearly has a remove method listed. So please explain you comment? Also, even if tableviewrow didn't have remove method, notice case #2, where remove is being called on a view, not a tableviewrow.
Hi Mitchell, You are correct. I meant that the "remove" method takes a Ti.UI.View parameter and not a Ti.UI.TableViewRow. However, I did the same test for the iOS and remove did work. I will move it to a TIMOB ticket for Android. Thanks, Varun
thanks varun.
case A: crash case B: works fine in iOS A,B works fine Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 iOS iPhone Simulator: iOS SDK version: 6.0 jithinpv
Cleanup the views collection if the row was a normal row before the old style row controls are created. https://github.com/appcelerator/titanium_mobile/pull/4209
Verified Both the Cases A and B. App does not crash Verified the fix on: Device : Google Nexus 7, Android Version: 4.3 SDK: 3.2.0.v20131013140318 CLI version : 3.2.0 OS : MAC OSX 10.8.4 Alloy : 1.2.2 Appcelerator Studio, build: 3.2.0.201310112258 XCode : 5