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
1bb482eb
Commit
1bb482eb
authored
Dec 24, 2020
by
cyber386
Committed by
Max Lv
Dec 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix little problem of profile switching
parent
099dde09
Changes
1
Hide 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/bg/BaseService.kt
core/src/main/java/com/github/shadowsocks/bg/BaseService.kt
+2
-2
No files found.
core/src/main/java/com/github/shadowsocks/bg/BaseService.kt
View file @
1bb482eb
...
...
@@ -224,8 +224,8 @@ object BaseService {
fun
forceLoad
()
{
val
(
profile
,
fallback
)
=
Core
.
currentProfile
?:
return
stopRunner
(
false
,
(
this
as
Context
).
getString
(
R
.
string
.
profile_empty
))
if
(
profile
.
host
.
isEmpty
()
||
profile
.
password
.
isEmpty
(
)
||
fallback
!=
null
&&
(
fallback
.
host
.
isEmpty
()
||
fallback
.
password
.
isEmpty
(
)))
{
if
(
profile
.
host
.
isEmpty
()
||
(!
profile
.
method
.
equals
(
"none"
)
&&
profile
.
password
.
isEmpty
()
)
||
fallback
!=
null
&&
(
fallback
.
host
.
isEmpty
()
||
(!
fallback
.
method
.
equals
(
"none"
)
&&
fallback
.
password
.
isEmpty
()
)))
{
stopRunner
(
false
,
(
this
as
Context
).
getString
(
R
.
string
.
proxy_empty
))
return
}
...
...
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