The customer discovered a bug with ListView on Android. The issue happens when having a very long list. They use one template for all items and show/hide certain parts of it depending on their business logic. They've noticed that when scrolling below the fold and scroll back up items are being re-rendered using styles from the LAST item in the list. Instead of showing/hiding items, they colored them red. Notice that when rendered it looks correct. When scrolling down and encounter accounts colored with red background and scroll up - previously non-colored accounts also get the red background. The customer tested on Samsung S6, S7, S8, S9, S10 with SDK 8.2.0 GA.
Note: We tested the issue on 8.2.0.GA, Sumsang Galaxy A7(Android 9) and the issue is reproducible on our end.
*Test steps:*
1. Download the attached project.
2. Open appcelerator studio and import the project.
2. Run the project on a device.
*Test code:*
https://drive.google.com/file/d/14BetKOnAO_JN7Kr33sJti65Jcmdrkga3/view?usp=sharing
*Test result:*
https://drive.google.com/file/d/10PFwqwx-CYTnJzfft6PmFpZG_UF1TDGp/view?usp=sharing
Note: On iOS it works as expected.
Here's a simplified test case:
master: https://github.com/appcelerator/titanium_mobile/pull/11302
merged to master
[~gmathews], When I tap on the red row & then scroll up & down I am able to reproduce the issue. Seems its fixed for the original case & this can be a side effect. [^20191106_133543.mp4]
master: https://github.com/appcelerator/titanium_mobile/pull/11319
8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11323
FR Passed. Waiting for Jenkins to merge.
merged to master and 8_3_X
Closing ticket, fix verified in SDK version
8.3.0.v20191111195828
and SDK version9.0.0.v20191111145151
Test and other information can be found at: master: https://github.com/appcelerator/titanium_mobile/pull/11319 8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11323