We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e0cdcf commit 55a4605Copy full SHA for 55a4605
app/build.gradle
@@ -51,7 +51,7 @@ android {
51
}
52
53
dependencies {
54
- implementation 'com.simplemobiletools:commons:5.17.0'
+ implementation 'com.simplemobiletools:commons:5.17.17'
55
56
kapt 'androidx.room:room-compiler:2.1.0'
57
implementation 'androidx.room:room-runtime:2.1.0'
app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt
@@ -575,7 +575,8 @@ class MainActivity : SimpleActivity() {
575
576
577
contentResolver.openOutputStream(document.uri).apply {
578
- write(content.toByteArray(Charset.forName("UTF-8")), 0, content.length)
+ val byteArray = content.toByteArray(Charset.forName("UTF-8"))
579
+ write(byteArray, 0, byteArray.size)
580
flush()
581
close()
582
0 commit comments