Hello. I am writing on Kotlin project using the Da...
# android
i
Hello. I am writing on Kotlin project using the Dagger 2 and obscure Moxy library (a copy Mosby) - https://github.com/Arello-Mobile/Moxy. It has several advantages. So, for example, is initialized in Presenter Activity:
Copy code
@InjectPresenter
lateinit Var mPresenter: NotePresenter
Here is an example of its use: https://github.com/Arello-Mobile/MoxySampl The problem is that the Presenter is not initialized. For example: I have two activities: MainActivity and NoteActivity. I use both @InjectPresenter activity. In MainActivity @InjectPresenter works and does not work in NoteActivity. If I change the name on NoteActivity ANoteActivity, it will @InjectPresenter workin ANoteActivity, but will not work in MainActivity. That is @InjectPresenter works in the activities that are used in the list (or alphabetical). I rewrote the project in Java and it worked. What could be the problem? Maybe the problem is kapt?