mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-23 20:10:07 +01:00
fix a glitch with note content being trimmed
This commit is contained in:
parent
7e0cdcf933
commit
55a460572b
@ -51,7 +51,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.17.0'
|
||||
implementation 'com.simplemobiletools:commons:5.17.17'
|
||||
|
||||
kapt 'androidx.room:room-compiler:2.1.0'
|
||||
implementation 'androidx.room:room-runtime:2.1.0'
|
||||
|
@ -575,7 +575,8 @@ class MainActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
contentResolver.openOutputStream(document.uri).apply {
|
||||
write(content.toByteArray(Charset.forName("UTF-8")), 0, content.length)
|
||||
val byteArray = content.toByteArray(Charset.forName("UTF-8"))
|
||||
write(byteArray, 0, byteArray.size)
|
||||
flush()
|
||||
close()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user