Skip to content

Commit

Permalink
use lowercase instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvanMo committed Jan 7, 2025
1 parent 15ee0c2 commit 1041aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/kotlin/com/jarvan/fluwx/io/ImagesIO.kt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ImagesIOIml(override val image: WeChatFile) : ImagesIO {

val byteArrayOutputStream = ByteArrayOutputStream()
var format = CompressFormat.PNG
if (suffix.toLowerCase(Locale.US) == ".jpg" || suffix.toLowerCase(Locale.US) == ".jpeg") {
if (suffix.lowercase(Locale.US) == ".jpg" || suffix.lowercase(Locale.US) == ".jpeg") {
format = CompressFormat.JPEG
}
bitmap.compress(format, 100, byteArrayOutputStream)
Expand Down

0 comments on commit 1041aa1

Please sign in to comment.