get previous fragment without using TabNavigation
Closed this issue · 4 comments
in my application i dont use any bottom navigation and i want to get previous fragment which i press on Back button on phone or clicking other widgets, how can i get that?
i want to change toolbar text by switching between fragments and onBackPressed button
i want to change toolbar text by switching between fragments and onBackPressed button
This has nothing to do with FragNav. Please keep questions to the scope of the library
in my application i dont use any bottom navigation and i want to get previous fragment which i press on Back button on phone or clicking other widgets, how can i get that?
The question is a little unclear to me, could you clarify?
@ncapdevi for example we are on HomeFragment
, ok? after switching or pushing other fragment such as ExampleFragment
, how can i get previous fragment which that was HomeFragment
after pressing such as on BackButton
?
@MahdiPishguy fragNavController.popFragment();