diff --git a/camera-viewfinder-compose/src/main/java/com/google/jetpackcamera/viewfinder/surface/Texture.kt b/camera-viewfinder-compose/src/main/java/com/google/jetpackcamera/viewfinder/surface/Texture.kt index 9741c030..396c3171 100644 --- a/camera-viewfinder-compose/src/main/java/com/google/jetpackcamera/viewfinder/surface/Texture.kt +++ b/camera-viewfinder-compose/src/main/java/com/google/jetpackcamera/viewfinder/surface/Texture.kt @@ -93,7 +93,7 @@ fun Texture( } }, update = { textureView = it - setView(textureView!!) + setView(it) onRequestBitmapReady { -> it.bitmap } } )