mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-20 10:17:23 +02:00
fix saving notes on sd card
This commit is contained in:
parent
436667ab9a
commit
4f5b8f039f
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user