Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
Only the `argType="reference"` accepts resource IDs (and returns an int that you'd pass to getContext().getString()), so it is working as intended that a "string" type is exactly what you put into your XML. It was important that the build time code gen and the runtime behavior always matches and that was not possible in the general cases - see edge cases such as https://issuetracker.google.com/issues/111736515 for some background.
Please starhttps://issuetracker.google.com/issues/36994900 to track progress towards allowing placeholders in XML files, which would be the recommended way of filling in placeholders at compile time.
Please star
Description
It would be nice if navigation had an API that provided the currentBackStackEntry every time the destination changed.
Giving direct access to the backStackEntry would mean simplified interaction with components made available by the NavBackStackEntry like ViewModels, Lifecycles, SavedHandles, etc.