fix saving notes on sd card

This commit is contained in:
tibbi 2017-03-09 19:13:22 +01:00
parent 436667ab9a
commit 4f5b8f039f
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
document = document.createFile("", file.name) document = document.createFile("", file.name)
} }
contentResolver.openOutputStream(document.uri).apply { contentResolver.openOutputStream(document.uri).apply {
write(content.toByteArray(Charset.forName("UTF-8"))) write(content.toByteArray(Charset.forName("UTF-8")), 0, content.length)
flush() flush()
close() close()
} }