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
5fed95f9
Commit
5fed95f9
authored
Mar 01, 2020
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make lint happy
parent
1ff8174e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
3 deletions
+13
-3
core/build.gradle
core/build.gradle
+4
-0
mobile/build.gradle
mobile/build.gradle
+3
-0
mobile/src/main/java/com/github/shadowsocks/ProfileConfigFragment.kt
...main/java/com/github/shadowsocks/ProfileConfigFragment.kt
+2
-2
mobile/src/main/java/com/github/shadowsocks/subscription/SubscriptionFragment.kt
...m/github/shadowsocks/subscription/SubscriptionFragment.kt
+1
-1
tv/build.gradle
tv/build.gradle
+3
-0
No files found.
core/build.gradle
View file @
5fed95f9
...
...
@@ -47,6 +47,10 @@ android {
}
ndkVersion
rootProject
.
ndkVersion
lintOptions
{
disable
'InvalidPackage'
}
}
androidExtensions
{
...
...
mobile/build.gradle
View file @
5fed95f9
...
...
@@ -55,6 +55,9 @@ android {
sourceSets
.
main
.
jniLibs
.
srcDirs
+=
new
File
(
project
(
':core'
).
buildDir
,
"intermediates/bundles/${getCurrentFlavor()}/jni"
)
ndkVersion
rootProject
.
ndkVersion
lintOptions
{
disable
'InvalidPackage'
}
}
androidExtensions
{
...
...
mobile/src/main/java/com/github/shadowsocks/ProfileConfigFragment.kt
View file @
5fed95f9
...
...
@@ -177,7 +177,7 @@ class ProfileConfigFragment : PreferenceFragmentCompat(),
DataStore
.
dirty
=
true
true
}
catch
(
exc
:
RuntimeException
)
{
Snackbar
.
make
(
view
!!
,
exc
.
readableMessage
,
Snackbar
.
LENGTH_LONG
).
show
()
Snackbar
.
make
(
requireView
()
,
exc
.
readableMessage
,
Snackbar
.
LENGTH_LONG
).
show
()
false
}
...
...
@@ -217,7 +217,7 @@ class ProfileConfigFragment : PreferenceFragmentCompat(),
plugin
.
value
=
pluginConfiguration
.
selected
pluginConfigure
.
isEnabled
=
selected
!
is
NoPlugin
pluginConfigure
.
text
=
pluginConfiguration
.
getOptions
().
toString
()
if
(!
selected
.
trusted
)
Snackbar
.
make
(
view
!!
,
R
.
string
.
plugin_untrusted
,
Snackbar
.
LENGTH_LONG
).
show
()
if
(!
selected
.
trusted
)
Snackbar
.
make
(
requireView
()
,
R
.
string
.
plugin_untrusted
,
Snackbar
.
LENGTH_LONG
).
show
()
}
REQUEST_CODE_PLUGIN_CONFIGURE
->
when
(
resultCode
)
{
Activity
.
RESULT_OK
->
{
...
...
mobile/src/main/java/com/github/shadowsocks/subscription/SubscriptionFragment.kt
View file @
5fed95f9
...
...
@@ -220,7 +220,7 @@ class SubscriptionFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener
toolbar
.
setTitle
(
R
.
string
.
subscriptions
)
toolbar
.
inflateMenu
(
R
.
menu
.
subscription_menu
)
toolbar
.
setOnMenuItemClickListener
(
this
)
SubscriptionService
.
idle
.
observe
(
this
)
{
SubscriptionService
.
idle
.
observe
(
viewLifecycleOwner
)
{
toolbar
.
menu
.
findItem
(
R
.
id
.
action_update_subscription
).
isEnabled
=
it
}
val
activity
=
activity
as
MainActivity
...
...
tv/build.gradle
View file @
5fed95f9
...
...
@@ -54,6 +54,9 @@ android {
sourceSets
.
main
.
jniLibs
.
srcDirs
+=
new
File
(
project
(
':core'
).
buildDir
,
"intermediates/bundles/${getCurrentFlavor()}/jni"
)
ndkVersion
rootProject
.
ndkVersion
lintOptions
{
disable
'InvalidPackage'
}
}
dependencies
{
...
...
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