Skip to content

Commit

Permalink
Update IFragment comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JessYanCoding committed Jun 15, 2017
1 parent 3a1be19 commit 966da96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MVP_generator_solution
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public class ${NAME}Fragment extends BaseFragment<${NAME}Presenter> implements $
*
* 使用此方法时请注意调用时fragment的生命周期,如果调用此setData方法时onCreate还没执行
* setData里却调用了presenter的方法时,是会报空的,因为dagger注入是在onCreated方法中执行的,然后才创建的presenter
* 方法中执行的,如果要做一些初始化操作,可以不必让外部调setData,在initData中初始化就可以了
* 如果要做一些初始化操作,可以不必让外部调setData,在initData中初始化就可以了
*
* @param data
*/
Expand Down

0 comments on commit 966da96

Please sign in to comment.