I'm overriding my OnActivityResult to control some flow in the application.
The problem that it gives an error that it is overriding nothing.
here is the code am using :
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent) {
}
The error only gone when I add nonnull protection after Intent, to have the code like this :
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
}
But that causes a kotlin.KotlinNullPointerException error after in the function itself.