surfaceCreated not triggered on resume after unlock screen
#43 aperta il 4 lug 2017
Metriche repository
- Star
- (369 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
all is going well, but if you try to press the power button (lock button) surfaceCreatedis not trigerred (SurfaceHolder.Callback surfaceHolderCallback @ line 90)
so this block (@ line 195)
public void start() { if (surfaceView != null && surfaceHolderCallback != null) { //if surface already created, we can start camera if (surfaceCreated) { startCameraView(context, cameraSource, surfaceView); } else { //startCameraView will be invoke in void surfaceCreated surfaceView.getHolder().addCallback(surfaceHolderCallback); } } }
start camera view will never be called. any fix. ?