mirror of
				https://github.com/SimpleMobileTools/Simple-Notes.git
				synced 2025-06-05 17:00:23 +02:00 
			
		
		
		
	fix a glitch with note content being trimmed
This commit is contained in:
		@@ -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()
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user