Skip to content

[Bug]: Place-type stay selected after tab switch, but map resets to unfiltered pins #6486

@XinyuYangYXY

Description

@XinyuYangYXY

Summary

After selecting one or more place-type chips in the Nearby tab, the map is correctly filtered. If I switch to another bottom-nav tab (e.g., Contributions or Explore) and then return to Nearby, the chips still appear selected, but the map shows unfiltered pins. I expected the map&list to remain filtered and reapply the same place-type filters on return.

Steps to reproduce

  1. Open the app and grant location permission.
  2. Go to the Nearby tab.
  3. Select one or more place-type chips (any types are fine).
  4. Observe: the map updates and shows only the selected types.
  5. Switch to another tab (e.g., Contributions / Explore).
  6. Switch back to Nearby.
  7. Observe: the chips are still selected, but the map shows all pins

Expected behaviour

When returning to the Nearby tab, the previously selected place-type filters should be persisted and automatically reapplied. The map pins should show only the selected types.

Actual behaviour

After switching away and back, the place-type chips remain visually selected, but the map resets to an unfiltered state until I manually toggle the chips again.

Device name

No response

Android version

Android 15.0

Commons app version

6.0.2-debug-main~4ed9ad508

Device logs

No response

Screenshots

Image 2. Image 3. Image

Would you like to work on the issue?

Yes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions