Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10793] Android: Cannot remove child view from inside TableViewRow

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-05-01T18:12:21.000+0000
Affected Version/sRelease 2.1.2, Release 3.1.0
Fix Version/s2013 Sprint 09 API, Release 3.2.0
ComponentsAndroid
Labelsapi, community, exalture, module_tableviewrow, qe-testadded
ReporterMitchell Amihod
AssigneeSunila
Created2012-08-22T23:48:10.000+0000
Updated2013-10-14T11:00:08.000+0000

Description

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.

Attachments

FileDateSize
app.js2012-08-22T23:48:10.000+00001554

Comments

  1. Varun Joshi 2012-09-05

    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
  2. Mitchell Amihod 2012-09-05

    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.
  3. Varun Joshi 2012-09-05

    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
  4. Mitchell Amihod 2012-09-05

    thanks varun.
  5. jithinpv 2013-03-18

    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
  6. Sunila 2013-04-23

    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
  7. Paras Mishra 2013-10-14

    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

JSON Source