2626import android .widget .RelativeLayout ;
2727import android .widget .TextView ;
2828
29+ import butterknife .BindView ;
30+ import butterknife .ButterKnife ;
2931import com .facebook .drawee .generic .GenericDraweeHierarchyBuilder ;
3032import com .facebook .drawee .view .SimpleDraweeView ;
3133
@@ -41,9 +43,13 @@ public interface OnMultipleUploadInitiatedHandler {
4143 void OnMultipleUploadInitiated ();
4244 }
4345
44- private GridView photosGrid ;
46+ @ BindView (R .id .multipleShareBackground )
47+ GridView photosGrid ;
48+
49+ @ BindView (R .id .multipleBaseTitle )
50+ EditText baseTitle ;
51+
4552 private PhotoDisplayAdapter photosAdapter ;
46- private EditText baseTitle ;
4753 private TitleTextWatcher textWatcher = new TitleTextWatcher ();
4854
4955 private Point photoSize ;
@@ -166,9 +172,7 @@ public void setImageOnlyMode(boolean mode) {
166172 @ Override
167173 public View onCreateView (LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) {
168174 View view = inflater .inflate (R .layout .fragment_multiple_uploads_list , container , false );
169- photosGrid = view .findViewById (R .id .multipleShareBackground );
170- baseTitle = view .findViewById (R .id .multipleBaseTitle );
171-
175+ ButterKnife .bind (this ,view );
172176 photosAdapter = new PhotoDisplayAdapter ();
173177 photosGrid .setAdapter (photosAdapter );
174178 photosGrid .setOnItemClickListener ((AdapterView .OnItemClickListener ) getActivity ());
0 commit comments