Can we rewrite:

/** An implementation of the Presenter */public class SayHelloPresenter implements SayHelloContract.Presenter{  //....  @Inject public SayHelloPresenter(Person person, SayHelloContract.View view) {    this.person = person;    this.view = view;  }  //....}

Into something like:

/** An implementation of the Presenter */public class SayHelloPresenter implements SayHelloContract.Presenter{
//....
@Inject Person person
@inject SayHelloContract.View view)
//....}

To be more consistent with the way you inject the presenter into the activity.

I’m confused cos I’m new to dependency injection and the syntax @Inject SayHelloPresenter() constructor is hard to understand :(

Hiring Android engineer shorturl.at/bivJO Clean coder, walker & biker. Hater of inefficiency

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store