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

If we open FRONT Camera it Stops #4

Open
tejas2 opened this issue Mar 8, 2019 · 1 comment
Open

If we open FRONT Camera it Stops #4

tejas2 opened this issue Mar 8, 2019 · 1 comment

Comments

@tejas2
Copy link

tejas2 commented Mar 8, 2019

java.lang.IllegalStateException: it.size must not be null
at husaynhakeem.io.facedetectorapp.MainActivity$setupCamera$1.process(MainActivity.kt:28)
at com.otaliastudios.cameraview.CameraView$Callbacks$13.run(CameraView.java:1721)
at android.os.Handler.handleCallback(Handler.java:874)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:198)
at android.os.HandlerThread.run(HandlerThread.java:65)

@Piyush0412
Copy link

Piyush0412 commented Dec 28, 2020

Change Back to Front in this line
val lensFacing =
savedInstanceState?.getSerializable(KEY_LENS_FACING) as Facing? ?: Facing.FRONT

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

No branches or pull requests

2 participants