jenzz/RxAppState

getAppStateMonitor().stop() not working proper after some instance

Opened this issue · 1 comments

Hi,
First of all Thanks for providing such useful library. It is really gone useful to many of the developers.

I have added this library to my project. It is working fine so far. But somehow after some instance, it is not calling stop() method or may be it is not working as expected.

I am calling stop() method when I am going to open camera or gallery to select the Image. After selecting a camera, when I came back, it is getting called by foreground method.

FYI, I have extends MultidexApplication to my application class. And the activity which is calling startActivityForResult is after the 3-4 activity of the MainActivity.

Can you please check for this issue and let me know the possible solution for it.

Thanks.
Sincerely,
Shreyash

jenzz commented

Hi,

Can you please provide an example that reproduces the issue?
It is tough to find out what the problem is without any code samples.

It sounds like something is resuming the app state monitor by calling start() before you receive the camera callback via onActivityResult().
Maybe in onStart() or onResume() of your Fragment / Activity?