Skip to content

Commit 1041aa1

Browse files
committed
use lowercase instead.
1 parent 15ee0c2 commit 1041aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/kotlin/com/jarvan/fluwx/io/ImagesIO.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class ImagesIOIml(override val image: WeChatFile) : ImagesIO {
102102

103103
val byteArrayOutputStream = ByteArrayOutputStream()
104104
var format = CompressFormat.PNG
105-
if (suffix.toLowerCase(Locale.US) == ".jpg" || suffix.toLowerCase(Locale.US) == ".jpeg") {
105+
if (suffix.lowercase(Locale.US) == ".jpg" || suffix.lowercase(Locale.US) == ".jpeg") {
106106
format = CompressFormat.JPEG
107107
}
108108
bitmap.compress(format, 100, byteArrayOutputStream)

0 commit comments

Comments
 (0)