chore: build
This commit is contained in:
+2
-2
@@ -4,13 +4,13 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'host.exp.exponent'
|
||||
version = '17.0.10'
|
||||
version = '17.0.11'
|
||||
|
||||
android {
|
||||
namespace "expo.modules.imagepicker"
|
||||
defaultConfig {
|
||||
versionCode 22
|
||||
versionName "17.0.10"
|
||||
versionName "17.0.11"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
testOptions {
|
||||
|
||||
Generated
Vendored
+4
-4
@@ -40,14 +40,14 @@ internal fun getType(contentResolver: ContentResolver, uri: Uri): String? {
|
||||
null,
|
||||
null,
|
||||
null
|
||||
).use { cursor ->
|
||||
if (cursor?.moveToFirst() == true) {
|
||||
)?.use { cursor ->
|
||||
if (cursor.moveToFirst()) {
|
||||
val columnIndex = cursor.getColumnIndex(DocumentsContract.Document.COLUMN_MIME_TYPE)
|
||||
if (columnIndex != -1 && !cursor.isNull(columnIndex)) {
|
||||
cursor.getString(columnIndex)
|
||||
return@use cursor.getString(columnIndex)
|
||||
}
|
||||
}
|
||||
null
|
||||
return@use null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user