Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Fix camera preview not showing on first launch #144

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

atanascu
Copy link

@atanascu atanascu commented Aug 2, 2017

The preview appears once the surface is created and there is a callback for the creation. Except that the callback is registered in prepareScanner which is called after the SurfaceView is actually created. I can confirm because I registered callbacks in the Preview class and they where called before entering prepareScanner.
So what I am doing is checking in the resumeScanning if the SurfaceView is valid.

card-io/card.io-Android-SDK#189

@atanascu
Copy link
Author

@lkorth Hi Luke, can you have a look at this PR and if it's ok, merge it into the project ?

@scorpeeon
Copy link

Any update in this? Is this project still being maintained?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants