1

I have a WebViewFragment in a Single Activity Application, and I'm using the Android Navigation Component. I wish to keep the WebViewFragment running in the background once I navigate to a new fragment, so as to avoid reloading the website. Is this possible? Code I use to navigate to a new fragment.

Navigation.findNavController(view).navigate(WebViewFragmentDirections.actionWebViewFragmentToMainMenuFragment())
Alex Petev
  • 501
  • 5
  • 19
  • Check this https://stackoverflow.com/questions/52716962/add-not-replace-fragment-with-navigation-architecture-component – Derek K Aug 05 '22 at 07:50

0 Answers0