You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classMainActivity : MvpAppCompatActivity(), MainViewInterface, AnkoLogger {
@InjectPresenter
lateinitvar mainPresenter:MainPresenterval recyclerView:RecyclerView by bindView(R.id.track_list)
val fab:FloatingActionButton by bindView(R.id.fab)
val cLayout:CoordinatorLayout by bindView(R.id.main_coordinator)
val realm:Realm=Realm.getDefaultInstance()
overridefunonCreate(savedInstanceState:Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
MyApplication.graph.inject(this)
recyclerView.layoutManager =LinearLayoutManager(this)
mainPresenter.loadAllTracks() //error here
}
ViewState:
@StateStrategyType(value =AddToEndSingleStrategy::class) //not sure about this thinginterfaceMainViewInterface : MvpView {
funsuccessLoadingTracks(tracks:List<Track>)
}
hey, I have this code:
ViewState:
Presenter
And I get this error when trying to access presenter var. Kotlin plugin is up to date.
The text was updated successfully, but these errors were encountered: