mozilla-mobile/android-components

Upstream a way to get the previous visible fragment while always skipping the current one

Mugurell opened this issue · 1 comments

On Fenix - mozilla-mobile/fenix#27305 it was seen that it is possible to get into a situation where the current fragment has another one on top so a call to NavController.previousBackStackEntry would skip the one on top and return the current fragment. Which is not the previous fragment wanted.

This is a good helper to have in Android-Components which can then be shared to multiple projects.
When added it can be part of support-ktx module.

┆Issue is synchronized with this Jira Task