nisrulz/qreader

surfaceCreated not triggered on resume after unlock screen

オープン

#43 opened on 2017/07/04

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Java (106 件のフォーク)github user discovery
bughelp wanted

Repository metrics

Stars
 (369 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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. ?

コントリビューターガイド