Shake detector is working when the application is in background
Steps to reproduce:
- Initialize LynxShakeDetector inside Application onCreate method.
- Close the application without kill it. You can pulse the home button.
- Shake your phone.
Bug: LynxActivity is opened even when the app is in background.
Fix: This behaviour should be configurable in LynxShakeDetector. Add code and tests to fix this issue.
@flipper83 you reported this bug, can you fix it?
me?? "pedrovgs opened this issue 2 minutes ago" but I can help you to close it jaajajaj
You reported the bug, you can fix it ;) No more than 1 hour of your time. I promise!
I'll take this one ;) .
There is another reason to fix this issue. Shake detector gets disabled when LynxActivity is launched, to avoid launching more instances, but when shaking on background shake detector is not stopped. Thus, when reproducing this error you'll also need to press back button several times to return to main activity.
Thanks @vic-gonzi waiting for your PR :)