Skip to content
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

"Continuous Capture" Activity mishandles unblank #24

Open
JellyBeans opened this issue Apr 21, 2015 · 2 comments · May be fixed by #56
Open

"Continuous Capture" Activity mishandles unblank #24

JellyBeans opened this issue Apr 21, 2015 · 2 comments · May be fixed by #56
Labels

Comments

@JellyBeans
Copy link

In continuous capture Activity, when press power button and press it again, the continuous capture does not work. The reason seems that the Surfaceview has not been destoried. So we need do the init in callback surfaceCreated Again after onResume if the sruface is still alive.

@fadden fadden added the bug label Apr 21, 2015
@fadden
Copy link
Contributor

fadden commented Apr 21, 2015

I'm not currently set up to debug this, but I think your assessment is correct. It's tearing everything down in onPause(), so it'll need to set it back up in onResume() if the Surface wasn't destroyed.

@JellyBeans
Copy link
Author

Yeah! The explanation is in your post http://source.android.com/devices/graphics/architecture.html Appendix B: SurfaceView and the Activity Lifecycle :) .

@fadden fadden changed the title Continuous capture "Continuous Capture" Activity mishandles unblank Mar 8, 2016
@d3orn d3orn linked a pull request Aug 23, 2016 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants