feat : 新增 土耳其语 ; bugfix

This commit is contained in:
eggmanQQQ
2024-10-23 17:11:50 +08:00
parent 9e590ada9e
commit 0404d203b3
8 changed files with 5431 additions and 5 deletions

View File

@@ -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 ->