Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28326] Android: Number-based "itemId" is transformed into string in ListView

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-05-18T18:23:39.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.0, Release 9.3.3
ComponentsAndroid, iOS
LabelsListView, android, parity
ReporterHans Knöchel
AssigneeGary Mathews
Created2021-01-22T11:51:16.000+0000
Updated2021-05-18T18:23:42.000+0000

Description

This is not a bug, because the property is documented to be a string, but it works on iOS and is super hard to debug, when you use the ID to search in a data set and suddenly cannot find any matches with a string compared to an int. Could be improved, but is easy to workaround using parseInt(event.itemId).

Comments

  1. Gary Mathews 2021-02-12

    master: https://github.com/appcelerator/titanium_mobile/pull/12468
  2. Samir Mohammed 2021-02-12

    FR Passed, waiting on Jenkins build.
  3. Christopher Williams 2021-02-16

    merged to master for 10.0.0 target. Backport PR for 9_3_X merged (unlikely to be released in a 9.3.3 GA)

JSON Source