Skip to content

Commit

Permalink
black screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedowns committed Jan 19, 2024
1 parent 3e66e96 commit 0be1c3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class LeiaView : InterlacedSurfaceView {

fun setSurfaceListener(surfaceListener: LeiaHelper3D.SurfaceListener) {
val surfaceAsset = InputViewsAsset.createEmptySurfaceForVideo {
surfaceTexture: SurfaceTexture? -> surfaceListener.onSurfaceChanged(Surface(surfaceTexture))
surfaceTexture: SurfaceTexture? ->
Log.d("SurfaceListener", "onSurfaceChanged called") // Log debug warning
surfaceListener.onSurfaceChanged(Surface(surfaceTexture))
}
setViewAsset(surfaceAsset)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,12 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram



val sL = LeiaHelper3D.SurfaceListener {
fun onSurfaceChanged(surface: Surface?) {
emulationState.newSurface(surface)
}
val sL = LeiaHelper3D.SurfaceListener{ surface ->
Log.debug("SurfaceListener onSurfaceChanged called") // Log debug warning
emulationState.newSurface(surface)
}
binding.surfaceEmulation.setSurfaceListener(sL)


binding.doneControlConfig.setOnClickListener {
binding.doneControlConfig.visibility = View.GONE
binding.surfaceInputOverlay.setIsInEditMode(false)
Expand Down Expand Up @@ -877,7 +875,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram

override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
Log.debug("[EmulationFragment] Surface changed. Resolution: " + width + "x" + height)
//emulationState.newSurface(holder.surface)
emulationState.newSurface(holder.surface)
}

override fun surfaceDestroyed(holder: SurfaceHolder) {
Expand Down

0 comments on commit 0be1c3c

Please sign in to comment.