sockeqwe / fragmentargs

Annotation Processor for setting arguments in android fragments
http://hannesdorfmann.com/android/fragmentargs
Apache License 2.0
1.08k stars 87 forks source link

Remove build(F fragment) method #84

Closed sockeqwe closed 7 years ago

sockeqwe commented 7 years ago

Is anyone actually using this generated build method that allows to set the arguments on an already existing / instantiated Fragment?

  @NonNull
  public <F extends Fragment> F build(@NonNull F fragment) {
    fragment.setArguments(mArguments);
    return fragment;
  }

I think this generated method could be removed. I consider it as bad practice to instantiate a Fragment without using the builder.