-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return onActivityResult, presenter getView() is null #35
Comments
Hi! This is looks like the intended behavior for 1.3.3 but I'm going to change this for 2.0.0. I will need to make some additional tests, probably tomorrow. |
So, I've made some tests.
|
If you need to return some data from the presenter immediately then you can just create a function that returns a value in the presenter. |
I ended up doing this and seems to work: protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
getPresenter().takeView(this);
getPresenter().doXYZ();
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, Not sure if this is an issue, or I just don't know the correct way to handle this.
In my MainActivity, I fired: startActivityForResult()...
Then onActivityResult() comes back, and I do stuff with my presenter. getPresenter() is fine, but within my presenter, getView() returns null.
Some logging tells me this is the flow:
onResume
startActivityForResult
onPause
onActivityResult
onResume
....
Thanks,
Jia
The text was updated successfully, but these errors were encountered: