0

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?

musooff
  • 6,412
  • 3
  • 36
  • 65
  • check this : https://stackoverflow.com/questions/50301820/remove-up-button-from-action-bar-when-navigating-using-bottomnavigationview-with – ismail alaoui May 27 '19 at 01:29
  • Can you [file a feature request](https://issuetracker.google.com/issues/new?component=409828)? This should be something Navigation does for you automatically. – ianhanniballake May 27 '19 at 01:52
  • @ianhanniballake that means so far there is no such option to remove it? – musooff May 27 '19 at 01:54
  • 1
    @musooff - [using AppBarConfiguration](https://developer.android.com/guide/navigation/navigation-ui#appbarconfiguration) as suggested in the first comment with every dialog you can trigger from a top level destination would certainly be a workaround. – ianhanniballake May 27 '19 at 02:07

1 Answers1

0

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

musooff
  • 6,412
  • 3
  • 36
  • 65