mapbox / mapbox/mapbox-navigation-android

FeedbackArrivalFragment leaks activity contents on recreation

Open
#3,828 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

UI
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

Refs https://github.com/mapbox/mapbox-navigation-android/pull/3758#issuecomment-733991877.

When used with `NavigationView` the `FeedbackArrivalFragment` leaks the contents of the activity on recreation, most likely tied to the feedback flow listener which is part of the `NavigationView`'s `ViewModel` but is kept by the recycler in the feedback fragment.

cc @Guardiola31337

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with FeedbackArrivalFragment and the feedback flow listener in NavigationView's ViewModel, then inspect how the feedback fragment's recycler retains that listener across activity recreation. Reproduce the issue by recreating the activity and verify that the old activity contents are no longer retained after the feedback flow is dismissed.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.