mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-19 11:51:40 +01:00
move mimetype lowercase into the function itself
This commit is contained in:
parent
b27d3ab795
commit
96e25bf855
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user