I have an AudioPlayerFragment
to which I pass some url with setArguments().
If I have an url
key in the getArguments()
of my insta
I have come across situations where you want to remove the arguments in a fragment. for example, entering a fragment for the first time maybe you have up to date data, but afterwards on a fragment re-creation you do not want that data, you want to refresh. you could clear a element in the bundle like this:
getArguments().remove("cartDetails");
for my case i wrote about, i put that in onCreate of the fragment after getting the initial data.