Skip to content

Commit

Permalink
fix: cannot take image multiple time issue
Browse files Browse the repository at this point in the history
  • Loading branch information
feveral committed Apr 3, 2023
1 parent c66b7ff commit 7b67013
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class TakePhotoActivity: AppCompatActivity() {
val byteArray = ByteArray(buffer.remaining())
buffer.get(byteArray)
photoResultBase64 = encodeToString(byteArray, Base64.DEFAULT)
image.close();
val intent = Intent(baseContext, ResultActivity::class.java)
startActivity(intent)
}
Expand Down

0 comments on commit 7b67013

Please sign in to comment.