Butterknife's unbinder + Conductor's Controller

199 Views Asked by At

I use Butterknife for binding views inside Conductor's controllers. Should I unbind these views inside a Controller's onDestroyView(), as recommended for Android Fragments?

1

There are 1 best solutions below

0
On

Yes, that's how they do it in their sample.

@Override
protected void onDestroyView(@NonNull View view) {
    super.onDestroyView(view);
    unbinder.unbind();
    unbinder = null;
}