修正警告

pull/172/head
wqfantexi 5 years ago
parent c18cebda9a
commit a98ed055f6
  1. 2
      app/src/main/java/io/legado/app/ui/config/FileAssociationViewModel.kt

@ -13,7 +13,7 @@ import java.io.File
class FileAssociationViewModel(application: Application) : BaseViewModel(application) { class FileAssociationViewModel(application: Application) : BaseViewModel(application) {
fun dispatchIndent(uri:Uri):Intent?{ fun dispatchIndent(uri:Uri):Intent?{
var url = ""; val url:String
//如果是普通的url,需要根据返回的内容判断是什么 //如果是普通的url,需要根据返回的内容判断是什么
if(uri.scheme == "file" || uri.scheme == "content"){ if(uri.scheme == "file" || uri.scheme == "content"){
val file = File(uri.path.toString()) val file = File(uri.path.toString())

Loading…
Cancel
Save