Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24451] Android: ListView Template get varying sectionCount and sections array when it is inside a ScrollableView

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-04-10T18:17:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.4
ComponentsAndroid
Labelsprimary
ReporterShuo Liang
AssigneeGary Mathews
Created2017-03-03T02:11:22.000+0000
Updated2017-04-10T19:01:38.000+0000

Description

Reproduce

1. Create a default alloy project 2. Simply add following file into view and controller folder 3. Run the app 4. Switch the cross the views by click the buttons 5. Notice the console output

Problem

Did not add/remove/modify the list view. Inspire of that, the section count and sections are varying. (keep change between 0 and 1) As a result of this, I am not able to add any items, whenever the sectionCount becomes 0 and the section array becomes empty while scrolling.

Attachments

FileDateSize
activity.js2017-03-03T02:05:20.000+0000869
activity.xml2017-03-03T02:06:15.000+0000289
activityActuals.js2017-03-03T02:05:20.000+0000492
activityActuals.xml2017-03-03T02:06:15.000+0000556
activityDetails.js2017-03-03T02:05:20.000+0000492
activityDetails.xml2017-03-03T02:06:15.000+0000557
activityManifest.js2017-03-03T02:05:20.000+0000489
activityManifest.xml2017-03-03T02:06:15.000+0000598
index.js2017-03-03T02:05:20.000+000052
index.xml2017-03-03T02:06:15.000+00009
TIMOB-24451.zip2017-03-06T13:27:03.000+0000111968

Comments

  1. Gary Mathews 2017-03-06

    master: https://github.com/appcelerator/titanium_mobile/pull/8862
  2. Gary Mathews 2017-03-28

    6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8914
  3. Hans Knöchel 2017-03-29

    Reopening - Is Resolved on Jira but not merged on Github.
  4. Lokesh Choudhary 2017-03-30

    Verified the fix with the 6.0.4 PR, waiting for Build to close the issue.
  5. Lokesh Choudhary 2017-03-30

    Verified 6.0.4.v20170330112925 has the fix. Closing.
  6. Gary Mathews 2017-04-06

    master: https://github.com/appcelerator/titanium_mobile/pull/8939 6_1_X: https://github.com/appcelerator/titanium_mobile/pull/8940 6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8941
  7. Lokesh Choudhary 2017-04-07

    Merged latest PR for all the 3 branches. Will verify & close once build is available.
  8. Lokesh Choudhary 2017-04-10

    Verified the fix in 6.0.4.v20170410103627, 6.1.0.v20170410104407 & 6.2.0.v20170410094811 respectively. Closing.

JSON Source