{ "id": "175910", "key": "TIMOB-28290", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-01-27T15:29:18.000+0000", "created": "2020-12-15T09:26:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "regression", "tableview" ], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "issuelinks": [ { "id": "59136", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "176000", "key": "TIMOB-28330", "fields": { "summary": "Android: Application crashes when scrolling a listview with zero items in the first section:", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-27T15:35:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Hello,\r\n\r\nListener scroll in tableview is not responding in the latest SDK 9.3.0\r\n\r\nCould you please check.\r\n\r\nThank you in advance.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableData = [];\r\nfor (let i =0; i <100; i++) {\r\n tableData.push({ title: `i = ${i}` });\r\n}\r\nvar table = Ti.UI.createTableView({\r\n data: tableData\r\n});\r\nwin.add(table);\r\ntable.addEventListener('scroll', () => {\r\n console.log('scrolling');\r\n});\r\nwin.open();\r\n\r\n{code}", "attachment": [ { "id": "67758", "filename": "ListViewCanScrollTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-12-17T23:02:47.000+0000", "size": 1206, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Scroll events do not fire for ListView and TableView", "creator": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andreas.pingas", "key": "andreas.pingas", "displayName": "Andreas Pingas", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1212, "state": "closed", "name": "2020 Sprint 25", "startDate": "2020-12-07T22:11:00.000Z", "endDate": "2020-12-18T22:11:00.000Z", "completeDate": "2020-12-18T16:35:34.544Z", "originBoardId": 114 }, { "id": 1214, "state": "closed", "name": "2021 Sprint 1", "startDate": "2021-01-04T17:38:57.886Z", "endDate": "2021-01-15T17:38:00.000Z", "completeDate": "2021-01-15T20:35:11.006Z", "originBoardId": 114 }, { "id": 1215, "state": "closed", "name": "2021 Sprint 2", "startDate": "2021-01-18T20:36:00.000Z", "endDate": "2021-01-29T20:36:00.000Z", "completeDate": "2021-01-31T17:42:28.052Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457892", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Below comment was made pre-coffee, I was testing against 9.2.2.GA... I can confirm this issue is a regression in 9.3.0.GA\r\n\r\n-[~andreas.pingas] I'm unable to reproduce your issue based on the following code, the {{scroll}} listener is firing when I scroll the TableView. Could you please provide a minimal sample to reproduce this issue-", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-12-15T10:29:59.000+0000", "updated": "2020-12-15T10:32:44.000+0000" }, { "id": "457920", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12348", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-12-17T04:08:39.000+0000", "updated": "2020-12-17T04:08:39.000+0000" }, { "id": "458033", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-18T16:37:38.000+0000", "updated": "2021-01-18T16:37:38.000+0000" }, { "id": "458041", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master, backport for 9_3_X merged for 9.3.1 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-01-19T17:47:07.000+0000", "updated": "2021-01-19T19:53:43.000+0000" }, { "id": "458090", "author": { "name": "mj", "key": "mj", "displayName": "martin", "active": true, "timeZone": "Europe/Berlin" }, "body": "Note that with the fix above I get the following crash when scrolling a listview with zero items in the first section:\r\n java.lang.ClassCastException: ti.modules.titanium.ui.widget.listview.ListViewProxy cannot be cast to ti.modules.titanium.ui.widget.listview.ListSectionProxy\r\n at ti.modules.titanium.ui.widget.listview.TiListView.generateScrollPayload(TiListView.java:263)", "updateAuthor": { "name": "mj", "key": "mj", "displayName": "martin", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-01-27T14:00:54.000+0000", "updated": "2021-01-27T14:00:54.000+0000" }, { "id": "458093", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Able to reproduce the issue mentioned above using the following test case\r\n\r\n{code:java}\r\nconst window = Ti.UI.createWindow();\r\nconst emptySection = Ti.UI.createListSection({ headerTitle: \"I'm an empty Section\" });\r\nconst listItems = [];\r\nfor (let index = 0; index < 100; index++) {\r\n listItems[index] = {\r\n properties: {\r\n title: \"Row \" + (index + 1).toString()\r\n }\r\n };\r\n}\r\nconst listSection = Ti.UI.createListSection({ headerTitle: \"List Section\" });\r\nlistSection.items = listItems;\r\nconst listView = Ti.UI.createListView({\r\n canScroll: true,\r\n});\r\nlistView.sections = [emptySection, listSection];\r\nwindow.add(listView);\r\nwindow.open();\r\n{code}\r\n\r\n*+Error:+*\r\n\r\n\r\n{code:java}\r\n[ERROR] \b\b \bInputEventReceiver: Exception dispatching input event.\r\n[INFO] \b\b \b APSAnalyticsStore: crash.report\r\n[ERROR] \b\b \bTiExceptionHandler: (main) [3,9994] ti.modules.titanium.ui.widget.listview.ListViewProxy cannot be cast to ti.modules.titanium.ui.widget.listview.ListSectionProxy\r\n[ERROR] \b\b \bTiExceptionHandler:\r\n[ERROR] \b\b \bTiExceptionHandler: ti.modules.titanium.ui.widget.listview.TiListView.generateScrollPayload(TiListView.java:263)\r\n[ERROR] \b\b \bTiExceptionHandler: ti.modules.titanium.ui.widget.listview.TiListView$1.onScrolled(TiListView.java:98)\r\n[ERROR] \b\b \bTiExceptionHandler: androidx.recyclerview.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:5173)\r\n[ERROR] \b\b \bTiExceptionHandler: androidx.recyclerview.widget.RecyclerView.scrollByInternal(RecyclerView.java:1971)\r\n[ERROR] \b\b \bTiExceptionHandler: androidx.recyclerview.widget.RecyclerView.onTouchEvent(RecyclerView.java:3391)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.View.dispatchTouchEvent(View.java:13415)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3054)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2741)\r\n[ERROR] \b\b \bTiExceptionHandler: ti.modules.titanium.ui.widget.listview.TiNestedRecyclerView.dispatchTouchEvent(TiNestedRecyclerView.java:109)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3060)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2755)\r\n[ERROR] \b\b \bTiExceptionHandler: com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:465)\r\n[ERROR] \b\b \bTiExceptionHandler: com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1849)\r\n[ERROR] \b\b \bTiExceptionHandler: android.app.Activity.dispatchTouchEvent(Activity.java:3993)\r\n[ERROR] \b\b \bTiExceptionHandler: androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)\r\n[ERROR] \b\b \bTiExceptionHandler: com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:423)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.View.dispatchPointerEvent(View.java:13674)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5482)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5285)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4788)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4841)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4807)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4947)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4815)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5004)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4788)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4841)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4807)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4815)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4788)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7505)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7474)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7435)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7630)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:188)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)\r\n[ERROR] \b\b \bTiExceptionHandler: android.view.I\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-27T15:28:29.000+0000", "updated": "2021-01-27T15:28:29.000+0000" }, { "id": "458094", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-27T15:35:06.000+0000", "updated": "2021-01-27T15:35:06.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }