Skip to content

Commit 55a4605

Browse files
committed
fix a glitch with note content being trimmed
1 parent 7e0cdcf commit 55a4605

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ android {
5151
}
5252

5353
dependencies {
54-
implementation 'com.simplemobiletools:commons:5.17.0'
54+
implementation 'com.simplemobiletools:commons:5.17.17'
5555

5656
kapt 'androidx.room:room-compiler:2.1.0'
5757
implementation 'androidx.room:room-runtime:2.1.0'

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,8 @@ class MainActivity : SimpleActivity() {
575575
}
576576

577577
contentResolver.openOutputStream(document.uri).apply {
578-
write(content.toByteArray(Charset.forName("UTF-8")), 0, content.length)
578+
val byteArray = content.toByteArray(Charset.forName("UTF-8"))
579+
write(byteArray, 0, byteArray.size)
579580
flush()
580581
close()
581582
}

0 commit comments

Comments
 (0)