using setArgs (), you will see that this fragment can be recreated due to a life cycle event ... while by passing arguments with your own setters it may not work correctly on certain cycles. That is why it is absolutely recommended to use either Args OR or Intent add-ons, they will always be automatically provided by the system if the fragment is recreated.
source
share