This commit is contained in:
Kr328 committed 2019-12-17 14:25:11 +08:00
1 parent 5bcbc4563e
commit a31f864ab8
4 files changed
+7 -5

No files matched your search

+2 -2
View File
@@ -13,8 +13,8 @@ android {
applicationId "com.github.kr328.clash"
minSdkVersion 24
targetSdkVersion 29
versionCode 10020
versionName "1.0.20-alpha"
versionCode 10021
versionName "1.0.21-alpha"
}
buildTypes {
release {
@@ -104,12 +104,13 @@ class ImportFileActivity : BaseActivity() {
FileOutputStream(pipe[1].fileDescriptor).use {
it.write(data.toByteArray())
}
pipe[1].close()
}
val error = it.checkProfileValid(pipe[0])
pipe[0].close()
pipe[1].close()
if (error != null)
throw Exception(error)
@@ -109,12 +109,13 @@ class ImportUrlActivity : BaseActivity() {
FileOutputStream(pipe[1].fileDescriptor).use {
it.write(data.toByteArray())
}
pipe[1].close()
}
val error = it.checkProfileValid(pipe[0])
pipe[0].close()
pipe[1].close()
if ( error != null )
throw Exception(error)
@@ -165,12 +165,12 @@ class ProfilesActivity : BaseActivity() {
FileOutputStream(pipe[1].fileDescriptor).use {
it.write(data.toByteArray())
}
pipe[1].close()
}
val error = it.checkProfileValid(pipe[0])
pipe[0].close()
pipe[1].close()
if ( error != null )
throw Exception(error)