Setting Fragment arguments from Activity
问题 I'm wondering if calling setArguments on a Fragment immediately after its instantiation creates any problems. For example, say we have the following snippet: Fragment myFragment = new CustomFragment(); Bundle args = new Bundle(); args.putBoolean("amIAnArg", true); myFragment.setArguments(args); This code seems to work fine, although it looks like the code should create a race condition since a Fragment's arguments can only be set before the onAttach method is called. Are there any issues with