Someone know why android navigation component when...
# android-architecture
s
Someone know why android navigation component when i press back button reload the actual fragment? Thanks
stackoverflow 1
f
@Sergio Crespo Toubes It uses "replace" for any fragment transaction.
s
no...
because is android navigation component
h
@furkan.akdemir Can we change default
replace
behavior to
add
in jetpack navigation fragment ? How ?
f
You can implement a custom
FragmentNavigator
and pass it to a
NavHostFragment
.
s
i didnt know that. But in a sample project that i did it works my navigation of 3 fragments