mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
move mimetype lowercase into the function itself
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user