Location disappears from search page
Bug #1584669 reported by
Ludovico Pavesi
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Libre BusTO |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Search for "metro"
2. notice that stop 8213 has a location
3. scroll down
4. scroll up
5. location is gone
Related branches
lp:~lvps/bus-torino/smallfix
- Valerio Bozzolan: Pending requested
-
Diff: 75 lines (+10/-4)4 files modifiedbuild.gradle (+4/-4)
src/it/reyboz/bustorino/backend/FiveTNormalizer.java (+2/-0)
src/it/reyboz/bustorino/middleware/PalinaAdapter.java (+2/-0)
src/it/reyboz/bustorino/middleware/StopAdapter.java (+2/-0)
Changed in bus-torino: | |
status: | Confirmed → Fix Committed |
Changed in bus-torino: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The bug is present in the emulator, too. How does that happen is kind of a mystery, the logcat shows no error/warning/debug info.
The error must be related to the ListView model type. I think this is what happens:
1. The first stops in the list which should appear on the screen are rendered
2. Scrolling down, the first liist objects are destroyed and the next are created
3. Scrolling up, the previous elements are created again following the ListView adapter model
As I'm not familiar with the app, I can't tell what is wrong, but I think it might be because the List Adapter doesn't include (in the model) the stop location or when it creates new object it can't access the location string.