We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15ee0c2 commit 1041aa1Copy full SHA for 1041aa1
android/src/main/kotlin/com/jarvan/fluwx/io/ImagesIO.kt
@@ -102,7 +102,7 @@ class ImagesIOIml(override val image: WeChatFile) : ImagesIO {
102
103
val byteArrayOutputStream = ByteArrayOutputStream()
104
var format = CompressFormat.PNG
105
- if (suffix.toLowerCase(Locale.US) == ".jpg" || suffix.toLowerCase(Locale.US) == ".jpeg") {
+ if (suffix.lowercase(Locale.US) == ".jpg" || suffix.lowercase(Locale.US) == ".jpeg") {
106
format = CompressFormat.JPEG
107
}
108
bitmap.compress(format, 100, byteArrayOutputStream)
0 commit comments