Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25252] Android: Scrolling with headerView causes app to crash

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-09-08T18:05:21.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sRelease 6.2.0
ComponentsAndroid
LabelsAndroid, regression
ReporterAbir Mukherjee
AssigneeGary Mathews
Created2017-09-07T21:36:49.000+0000
Updated2017-09-11T21:23:50.000+0000

Description

*Description:* When a TableView contains a headerView, the app crashes when the headerView is scrolled out of view, and then scrolled back into view. *Steps to Reproduce:* 1 Create a classic app that has a TableView with a headerView. Create enough rows of data so that you can scroll down far enough for the headerView to scroll out of visibility. 2. Scroll back up so that the headerView becomes visible again. 3. The app will crash when the headerView tries to reappear on the screen. *Actual Results:* The app will crash when scrolling back up to see the headerView *Expected results:* The app should not crash. *Other relevant information:* The crash occurs on an Android 7.1.2 device, but does not occur on an Android 6.0.1 device. This is also a regression. On Ti SDK 6.1.2.GA, the crash was not observed on an Android device. It does not crash with headerTitle, only headerView. The test code I used is here: https://gist.github.com/mukherjee2/9b433fe8054849b92d51646ab362dca4

Comments

  1. Gary Mathews 2017-09-08

    master: https://github.com/appcelerator/titanium_mobile/pull/9414 6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9415
  2. Abir Mukherjee 2017-09-08

    Passed FR; PR's merged. Changes seen in 6.2.0.v20170908115003.

JSON Source