Search code examples
androidandroid-fragmentsandroid-dialogfragmentandroid-architecture-navigation

How to remove back button from background fragment when dialog is popped in NavigationComponent?


I am using latest Navigation Component and have some DialogFragment. I use dialog element to specify my DialogFragments in my navigation graph. But when dialog is popped, back fragment showing back button which I want to remove.

enter image description here

How can I not show back button in background fragment when dialog is popped?


Solution

  • This feature has been added with 2.1.0-alpha06 release referring to this issue