mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-25 13:38:59 +01:00
convert image mimetype to lowercase, remove unused imports/tags
This commit is contained in:
parent
0124c6e2f7
commit
b317507370
@ -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
|
||||
|
@ -12,5 +12,5 @@ fun String.getExtensionFromMimeType(): String {
|
||||
}
|
||||
|
||||
fun String.isImageMimeType(): Boolean {
|
||||
return startsWith("image")
|
||||
return lowercase().startsWith("image")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user