mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-06-11 18:19:15 -04:00
fix saving notes on sd card
This commit is contained in:
@@ -208,7 +208,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||
document = document.createFile("", file.name)
|
||||
}
|
||||
contentResolver.openOutputStream(document.uri).apply {
|
||||
write(content.toByteArray(Charset.forName("UTF-8")))
|
||||
write(content.toByteArray(Charset.forName("UTF-8")), 0, content.length)
|
||||
flush()
|
||||
close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user