android / codelab-android-navigation

Apache License 2.0
634 stars 275 forks source link

Documentation question #93

Open peter-budo opened 4 years ago

peter-budo commented 4 years ago

In the code lab section 7 (https://codelabs.developers.google.com/codelabs/android-navigation/#6) notice bellow first code snippet says

The actions are nested within the destination - this is the destination you will navigate from

wouldn't be correct to say

The actions are nested within the fragment - this is the destination you will navigate from

kaushiknsanji commented 4 years ago

Since a destination can either be an Activity or a Fragment, they used the keyword "destination" in the sentence in order to refer to both in general. Hope this helps!