Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
f9a80ac6
Commit
f9a80ac6
authored
Oct 05, 2020
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary parentheses
parent
cd6a1f1d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/src/main/java/com/github/shadowsocks/plugin/PluginManager.kt
.../main/java/com/github/shadowsocks/plugin/PluginManager.kt
+2
-2
No files found.
core/src/main/java/com/github/shadowsocks/plugin/PluginManager.kt
View file @
f9a80ac6
...
@@ -158,8 +158,8 @@ object PluginManager {
...
@@ -158,8 +158,8 @@ object PluginManager {
}
}
val
provider
=
providers
.
single
().
providerInfo
val
provider
=
providers
.
single
().
providerInfo
val
options
=
configuration
.
getOptions
{
provider
.
loadString
(
PluginContract
.
METADATA_KEY_DEFAULT_CONFIG
)
}
val
options
=
configuration
.
getOptions
{
provider
.
loadString
(
PluginContract
.
METADATA_KEY_DEFAULT_CONFIG
)
}
val
isV2
=
(
provider
.
applicationInfo
.
metaData
?.
getString
(
PluginContract
.
METADATA_KEY_VERSION
)
val
isV2
=
provider
.
applicationInfo
.
metaData
?.
getString
(
PluginContract
.
METADATA_KEY_VERSION
)
?.
substringBefore
(
'.'
)
?.
toIntOrNull
()
?:
0
)
>=
2
?.
substringBefore
(
'.'
)
?.
toIntOrNull
()
?:
0
>=
2
var
failure
:
Throwable
?
=
null
var
failure
:
Throwable
?
=
null
try
{
try
{
initNativeFaster
(
provider
)
?.
also
{
return
InitResult
(
it
,
options
,
isV2
)
}
initNativeFaster
(
provider
)
?.
also
{
return
InitResult
(
it
,
options
,
isV2
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment