Skip to content

Commit

Permalink
Merge pull request #136 from SecUSo/issue/#133
Browse files Browse the repository at this point in the history
Fixes: #133
  • Loading branch information
coderPaddyS authored Jan 15, 2023
2 parents f67cd0e + 953e208 commit 16e0eef
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,10 @@ class AudioNoteActivity : BaseNoteActivity(DbContract.NoteEntry.TYPE_AUDIO) {
destination = FileOutputStream(file).channel
destination.transferFrom(source, 0, source.size())
} finally {
source!!.close()
destination!!.close()
source?.close()
destination?.close()
}

// Tell the media scanner about the new file so that it is
// immediately available to the user.
MediaScannerConnection.scanFile(
Expand Down

0 comments on commit 16e0eef

Please sign in to comment.