package io.sento.asmifier;

import android.widget.ImageView;
import io.sento.Binding;
import io.sento.Finder;

public class ParentBinding implements Binding<Object> {
  @Override
  public <S> void bind(Object target, S source, Finder<? super S> finder) {
    ((Parent) target).required = (ImageView) finder.find(456789, source, false);
    ((Parent) target).optional = (ImageView) finder.find(456789, source, true);
    ((Parent) target).background = finder.resources(source).getDrawable(456789);
    ((Parent) target).padding = finder.resources(source).getDimension(456789);
    ((Parent) target).enabled = finder.resources(source).getBoolean(456789);
    ((Parent) target).title = finder.resources(source).getString(456789);

    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));
    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));
    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));
    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));
    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));
  }

  @Override
  public void unbind(Object target) {

  }
}

@@ -21,16 +21,42 @@
 ifier;%0A%0A
+import android.view.View;%0A
 import a
@@ -746,24 +746,43 @@
 56789);%0A%0A   
+ final View view1 =
  finder.find
@@ -808,408 +808,212 @@
 lse)
-.setOnClickListener(new ParentBinding$$1(((Parent) target)));%0A    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));%0A    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));%0A    finder.find(456789, source, false).setOnClickListener(new ParentBinding$$1(((Parent) target)));%0A    finder.find(456789, source, false)
+;%0A%0A    if (view1 != null) %7B%0A      view1.setOnClickListener(new ParentBinding$$1(((Parent) target)));%0A    %7D%0A%0A    final View view2 = finder.find(456789, source, false);%0A%0A    if (view2 != null) %7B%0A      view2
 .set
@@ -1070,16 +1070,22 @@
 get)));%0A
+    %7D%0A
   %7D%0A%0A  @

Update ParentBinding