Hi everyone, quick question for which I can't find...
# android
t
Hi everyone, quick question for which I can't find the answer on Google: When using Navigation API, and SafeArgs:
val args: SomeFragmentArgs by navArgs()
Does the
args
field keep its values after the activity gets killed by the system and recreated? In other words: does the Bundle sent to the Fragment survive? Cheers
i
The Bundle of arguments sent to a Fragment are indeed part of the Fragment's saved instance state. There's no reason to store it again separately
👍 2
a
Thats great, was just trying it out and wondered that it indeed restored correctly.
t
Nice, thanks!
Oh I just noticed it's Ian Lake 😮 Love your work in Framework library. I can't wait for a stable version, so we can start using it at work!
Can't wait for multi back stack support :D
o
@Tiago Nunes Might I suggest that you create this exact question on StackOverflow, answering it yourself with the information that Ian provided here? Other people searching for this information will then be able to find it.
t
Wiil do 🙂