mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02: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