move mimetype lowercase into the function itself

This commit is contained in:
Tibor Kaputa 2021-09-08 15:36:19 +02:00 committed by GitHub
parent b27d3ab795
commit 96e25bf855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
package com.simplemobiletools.smsmessenger.extensions
fun String.getExtensionFromMimeType(): String {
return when (this) {
return when (lowercase()) {
"image/png" -> ".png"
"image/apng" -> ".apng"
"image/webp" -> ".webp"