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

Android: Application crashes when scrolling to listview marker

    Details

    • Story Points:
      3
    • Sprint:
      2021 Sprint 4, 2021 Sprint 10

      Description

      The application will crash when trying to fire a marker event in listview.
      Tested with SDK 9.3.1.GA and 9.3.2.v20210205063432.

      Test Steps:

      1. Create a New titanium application
      2. Copy the test case below into the application
      3. Run the application
      4. Scroll list view to Row 20

      Test Case:

      const window = Ti.UI.createWindow();
       
      const emptySection = Ti.UI.createListSection({
          headerTitle: "I'm an empty Section"
      });
       
      const listItems = [];
       
      for (let index = 0; index < 100; index++) {
       
          listItems[index] = {
              properties: {
                  title: "Row " + (index + 1).toString()
              }
          };
      }
       
      const listSection = Ti.UI.createListSection({
          headerTitle: "List Section"
      });
       
      listSection.items = listItems;
       
      const listView = Ti.UI.createListView({
          canScroll: true,
      });
       
      listView.sections = [emptySection, listSection];
       
      listView.addMarker({
          sectionIndex: 1,
          itemIndex: 20
      });
       
      listView.addEventListener("marker", () => {
          alert("Here");
      });
       
      window.add(listView);
       
      window.open();
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              ahmed.mohamed20320 Ahmed Mohamed
              Reviewer:
              Joshua Quick
              Tester:
              Satyam Sekhri
            • Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration