Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17550

Android: ListView methods getSections() and properties sections return nothing/undefined

    Details

      Description

      Problem Description

      I see, that on iOS listView.getSections(0) and listView.sections[0] return [object TiUIListSection] while on Android listView.getSections(0) return nothing and listView.sections[0] returns undefined on Titanium 3.3.0GA.
      On Titanium 3.2.3GA this code work fine on both platform, iOS and Android, but now it works only on iOS.

      Steps to reproduce

      • Create a Classic Titanium project
      • Paste the testcase into app.js
      • Run this with testing environment
      • Check the logs in Ti Studio

      Testcase

      var data = {
      	properties : {
      		title : "Sample"
      	}
      };
      var listView = Titanium.UI.createListView({});
      var listSections = Titanium.UI.createListSection({});
      listSections.setItems([data]);
      listView.setSections([listSections]);
      Ti.API.info(listView.sections[0]);//undefined
      Ti.API.info(listView.sections[0].items);//ERROR
      Ti.API.info(listView.sections[0].items.length); //ERROR

      Actual Results

      On Android listView.getSections(0) return nothing and listView.sections[0] returns undefined on Titanium SDK 3.3.0GA.

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              Libera Libera
              Reviewer:
              Ping Wang
              Tester:
              Lokesh Choudhary
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19102
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration