Skip to content

Commit

Permalink
#7 fixing typo in DroidMVPFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejchm committed Jul 10, 2016
1 parent 6987ccb commit b7dceda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public abstract class DroidMVPFragment<M extends Serializable, V extends DroidMV

@Override public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
performFieldInection();
performFieldInjection();
mvpDelegate.onCreate(this, savedInstanceState);
}

Expand Down Expand Up @@ -67,7 +67,7 @@ public abstract class DroidMVPFragment<M extends Serializable, V extends DroidMV
* #createPresentationModel() methods are called, so you can
* have your presenter and/or Presentation Model being injected by Dagger.
*/
protected abstract void performFieldInection();
protected abstract void performFieldInjection();

/**
* Used for creating the presenter instance, called in #onCreate(Bundle) method.
Expand All @@ -85,6 +85,7 @@ public abstract class DroidMVPFragment<M extends Serializable, V extends DroidMV
*
* You can retrieve the arguments from #getArguments() method of your
* fragment and pass it to your Presentation's model constructor.
*
* @return Presentation Model instance used by your Presenter.
*/
@NonNull protected abstract M createPresentationModel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class RepositoriesFragment
SampleApplication.getComponent().inject(this);
}

@Override protected void performFieldInection() {
@Override protected void performFieldInjection() {
SampleApplication.getComponent().inject(this);
}

Expand Down

0 comments on commit b7dceda

Please sign in to comment.