| // This is the NotesList activity Component (Which could be turned into a generic one) | |
| component = DaggerNotesActivityComponent | |
| .builder() | |
| .notesActivityModule(NotesActivityModule(this)) // Extra step, since the module requires the context to provide a RecyclerViewAdapter | |
| .notesApplicationComponent(NotesApplication.get(this).getComponent()) | |
| .build() | |
| // This is the EditorActivity Component (The one which would be deleted in favor of the generic one) | |
| component = DaggerEditorActivityComponent | |
| .builder() | |
| // Doesn't require the extra step .notesActivityModule(NotesActivityModule(this)) | |
| .notesApplicationComponent(NotesApplication.get(this).getComponent()) | |
| .build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment