fix bugs
This commit is contained in:
4 files changed
+7
-5
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user