Fixed
Status Update
Comments
vi...@google.com <vi...@google.com>
di...@google.com <di...@google.com>
ku...@google.com <ku...@google.com> #2
Following "steps to reproduce" in the current version of Android Studio leads to the correct behavior (namely activity_main
still exists in the list of hosts after the quick-fix is applied).
Description
Studio Build:
and:
4.0.0
and4.2.0-alpha02
6.1.1
and6.5-rc-1
Steps to Reproduce:
res/layout/activity_main.xml
and notice that it uses<fragment>
for theNavHostFragment
res/navigation/main_nav_graph.xml
and see that, under "HOST" in the Destinations section, we haveactivity_main (nav_host)
(see screenshot 1 from Android Studio 4.0)res/layout/activity_main.xml
and accept the quick-fix to switch the<fragment>
to a<FragmentContainerView>
res/navigation/main_nav_graph.xml
and see that, under "HOST" in the Destinations section, we have "No NavHostFragments found" (see screenshot 2 from Android Studio 4.0)If we have a warning for
<fragment>
and a quick-fix to switch toFragmentContainerView
, then ideally the navigation editor would honorFragmentContainerView
.Thanks for considering this!