Commit 887c958
fix: use composite key for CardInfo in HelpScreen grid (#244)
Multiple CardInfo entries can share the same nameRes (e.g., Troika has
both MifareClassic and MifareUltralight variants). Using nameRes.key
alone as the LazyVerticalGrid item key caused a duplicate key crash
when scrolling.
Add CardInfo.uniqueKey that combines nameRes.key with cardType.name,
and use it for grid keys and card selection in HelpScreen.
Co-authored-by: Claude <claude@codebutler.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent c116f05 commit 887c958
File tree
2 files changed
+6
-4
lines changed- transit/src/commonMain/kotlin/com/codebutler/farebot/transit
2 files changed
+6
-4
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments