
/**
 * This file is automatically generated by wheat-build.
 * Do not modify this file -- YOUR CHANGES WILL BE ERASED!
 */

package x7c1.linen.res.layout;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.View;
import android.support.v7.widget.Toolbar;
import android.support.v7.widget.RecyclerView;
import x7c1.wheat.ancient.resource.ViewHolderProvider;
import x7c1.linen.R;
import x7c1.linen.glue.res.layout.SettingChannelSourcesLayout;

public class SettingChannelSourcesLayoutProvider implements ViewHolderProvider<SettingChannelSourcesLayout> {

    private final LayoutInflater inflater;

    public SettingChannelSourcesLayoutProvider(Context context){
        inflater = LayoutInflater.from(context);
    }

    @Override
    public int layoutId(){
        return R.layout.setting_channel_sources_layout;
    }

    @Override
    public SettingChannelSourcesLayout inflateOn(ViewGroup parent){
        return inflate(parent, false);
    }

    @Override
    public SettingChannelSourcesLayout inflate(ViewGroup parent, boolean attachToRoot){
        View view = inflater.inflate(R.layout.setting_channel_sources_layout, parent, attachToRoot);
        return new SettingChannelSourcesLayout(
            view,
            (android.support.v7.widget.Toolbar) view.findViewById(R.id.setting_channel_sources_layout__toolbar),
            (android.support.v7.widget.RecyclerView) view.findViewById(R.id.setting_channel_sources_layout__source_list)
        );
    }
}

@@ -415,24 +415,86 @@
 erProvider;%0A
+import x7c1.wheat.ancient.resource.ViewHolderProviderFactory;%0A
 import x7c1.
@@ -502,16 +502,16 @@
 inen.R;%0A
-
 import x
@@ -794,16 +794,21 @@
         
+this.
 inflater
@@ -839,32 +839,146 @@
 ontext);%0A    %7D%0A%0A
+    public SettingChannelSourcesLayoutProvider(LayoutInflater inflater)%7B%0A        this.inflater = inflater;%0A    %7D%0A%0A
     @Override%0A  
@@ -1415,12 +1415,286 @@
 urn 
-new 
+factory().createViewHolder(view);%0A    %7D%0A%0A    @Override%0A    public SettingChannelSourcesLayout inflate()%7B%0A        return inflate(null, false);%0A    %7D%0A%0A    public static ViewHolderProviderFactory%3CSettingChannelSourcesLayout%3E factory()%7B%0A        return new ViewHolderProviderFactory%3C
 Sett
@@ -1716,17 +1716,21 @@
 esLayout
-(
+%3E() %7B
 %0A       
@@ -1738,14 +1738,594 @@
     
-view,%0A
+@Override%0A            public ViewHolderProvider%3CSettingChannelSourcesLayout%3E create(LayoutInflater inflater)%7B%0A                return new SettingChannelSourcesLayoutProvider(inflater);%0A            %7D%0A            @Override%0A            public ViewHolderProvider%3CSettingChannelSourcesLayout%3E create(Context context)%7B%0A                return new SettingChannelSourcesLayoutProvider(context);%0A            %7D%0A            @Override%0A            public SettingChannelSourcesLayout createViewHolder(View view)%7B%0A                return new SettingChannelSourcesLayout(%0A                    view,%0A       
     
@@ -2324,32 +2324,33 @@
                 
+ 
 (android.support
@@ -2434,16 +2434,24 @@
 olbar),%0A
+        
         
@@ -2571,17 +2571,50 @@
         
+     
-)
+   );%0A            %7D%0A        %7D
 ;%0A    %7D%0A

update impl