I have an AudioPlayerFragment
to which I pass some url with setArguments().
If I have an url
key in the getArguments()
of my insta
Do not try to change the argument. Instantiate the Fragment again with no argument and replace it with the old one.
If you do not want to recreate the UI and only try to change the music or audio, you can decouple the audio functions from your fragment and put them in a Headless Retained Fragment and you are good to go.