Skip to content

Scope question #18

Description

@SivarajSubramanian1

Great example, but is that correct to inject the activityInjector() from user manager in the application class.

@Override
    public AndroidInjector<Activity> activityInjector() {
        return userManager.activityInjector();
    }

In case of multiple sub components, should we not use the injector from the manager which built the component for that scoped activity. In this example login should have used the application component injector and the home activity could use the android injector from user manager.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions