move mimetype lowercase into the function itself
This commit is contained in:
parent
b27d3ab795
commit
96e25bf855
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
package com.simplemobiletools.smsmessenger.extensions
|
package com.simplemobiletools.smsmessenger.extensions
|
||||||
|
|
||||||
fun String.getExtensionFromMimeType(): String {
|
fun String.getExtensionFromMimeType(): String {
|
||||||
return when (this) {
|
return when (lowercase()) {
|
||||||
"image/png" -> ".png"
|
"image/png" -> ".png"
|
||||||
"image/apng" -> ".apng"
|
"image/apng" -> ".apng"
|
||||||
"image/webp" -> ".webp"
|
"image/webp" -> ".webp"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue