Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

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

Open
ShreyashPromact opened this issue Aug 3, 2017 · 1 comment

Comments

@ShreyashPromact
Copy link

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
Copy link
Owner

jenzz commented Jan 15, 2018

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants