package com.leroymerlin.pandroid.app.delegate.impl;

import android.os.Bundle;
import android.view.View;

import com.leroymerlin.pandroid.app.delegate.SimpleLifecycleDelegate;

import butterknife.ButterKnife;


/**
 * Created by florian on 10/02/16.
 */
public class ButterKnifeLifecycleDelegate extends SimpleLifecycleDelegate {
    @Override
    public void onCreateView(Object target, View view, Bundle savedInstanceState) {
        super.onCreateView(target, view, savedInstanceState);
        ButterKnife.bind(target, view);
    }
}

@@ -202,16 +202,45 @@
 rKnife;%0A
+import butterknife.Unbinder;%0A
 %0A%0A/**%0A *
@@ -352,16 +352,48 @@
 egate %7B%0A
+    private Unbinder unbinder;%0A%0A
     @Ove
@@ -551,16 +551,27 @@
 %0A       
+ unbinder =
  ButterK
@@ -600,11 +600,143 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public void onDestroyView(Object target) %7B%0A        super.onDestroyView(target);%0A        unbinder.unbind();%0A    %7D
 %0A%7D%0A

fix (Butterknife): add new unbind method