feat : 新增 土耳其语 ; bugfix
This commit is contained in:
@@ -52,6 +52,18 @@ object MyUriUtils {
|
||||
|
||||
}
|
||||
|
||||
fun getFileType(context: Context, uri: Uri) : String {
|
||||
var type = ""
|
||||
context.contentResolver?.let {
|
||||
type = it.getType(uri).toString()
|
||||
}
|
||||
return type
|
||||
}
|
||||
|
||||
fun isGif(context: Context, uri: Uri) :Boolean{
|
||||
return getFileType(context,uri) == "image/gif"
|
||||
}
|
||||
|
||||
fun copyFileToUrl(context: Context, uri: Uri,outUri:Uri) : Boolean{
|
||||
val contentResolver = context.contentResolver
|
||||
contentResolver?.openInputStream(uri)?.use { uriStream ->
|
||||
|
Reference in New Issue
Block a user