Skip to content
Snippets Groups Projects
Commit 08f8deca authored by Michael Utama's avatar Michael Utama
Browse files

fix: crash after taking photo

parent f4b58fc4
2 merge requests!57feat: merge release sprint 4,!55fix: crash after taking photo
......@@ -181,7 +181,6 @@ class CameraActivity : AppCompatActivity() {
override fun onCaptureSuccess(image: ImageProxy) {
super.onCaptureSuccess(image)
playShutterSound()
freezeImage(image)
runOnUiThread {
Toast.makeText(this@CameraActivity, "Photo taken", Toast.LENGTH_SHORT).show()
}
......@@ -190,6 +189,7 @@ class CameraActivity : AppCompatActivity() {
saveImageOnCache(image)
}
}
freezeImage(image)
}
},
)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment