Skip to content

Commit d4808c7

Browse files
committed
Use proper return type for Fragment.onViewCreated(...)
1 parent 7a381a0 commit d4808c7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎AndroidAnnotations/androidannotations/src/main/java/org/androidannotations/processing/EFragmentProcessor.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ public void process(Element element, JCodeModel codeModel, EBeansHolder eBeansHo
134134
{
135135
// onViewCreated
136136

137-
JMethod onViewCreated = holder.generatedClass.method(PUBLIC, classes.VIEW, "onViewCreated");
137+
JMethod onViewCreated = holder.generatedClass.method(PUBLIC, codeModel.VOID, "onViewCreated");
138138
onViewCreated.annotate(Override.class);
139139
JVar view = onViewCreated.param(classes.VIEW, "view");
140140
JVar savedInstanceState = onViewCreated.param(classes.BUNDLE, "savedInstanceState");
141141

142-
JBlock body = onViewCreated.body();
142+
JBlock onViewCreatedBody = onViewCreated.body();
143143

144-
body.invoke(_super(), onViewCreated).arg(view).arg(savedInstanceState);
144+
onViewCreatedBody.invoke(_super(), onViewCreated).arg(view).arg(savedInstanceState);
145145

146-
body.invoke(holder.afterSetContentView);
146+
onViewCreatedBody.invoke(holder.afterSetContentView);
147147
}
148148

149149

0 commit comments

Comments
 (0)