Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

"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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants