convert image mimetype to lowercase, remove unused imports/tags

This commit is contained in:
Paul Akhamiogu 2021-09-06 11:13:28 +01:00
parent 0124c6e2f7
commit b317507370
2 changed files with 1 additions and 3 deletions

View File

@ -13,7 +13,6 @@ import android.os.Handler
import android.provider.Telephony
import android.telephony.SubscriptionManager
import android.text.TextUtils
import android.util.Log
import android.util.TypedValue
import android.view.*
import android.view.inputmethod.EditorInfo
@ -55,7 +54,6 @@ import org.greenrobot.eventbus.ThreadMode
class ThreadActivity : SimpleActivity() {
private val MIN_DATE_TIME_DIFF_SECS = 300
private val PICK_ATTACHMENT_INTENT = 1
private val TAG = "ThreadActivity"
private var threadId = 0L
private var currentSIMCardIndex = 0

View File

@ -12,5 +12,5 @@ fun String.getExtensionFromMimeType(): String {
}
fun String.isImageMimeType(): Boolean {
return startsWith("image")
return lowercase().startsWith("image")
}