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
3db8e9d7
Commit
3db8e9d7
authored
Dec 09, 2014
by
Max Lv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine #171
parent
e708e117
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
+1
-2
src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala
.../scala/com/github/shadowsocks/ShadowsocksNatService.scala
+0
-2
No files found.
src/main/scala/com/github/shadowsocks/Shadowsocks.scala
View file @
3db8e9d7
...
@@ -69,7 +69,6 @@ import net.simonvt.menudrawer.MenuDrawer
...
@@ -69,7 +69,6 @@ import net.simonvt.menudrawer.MenuDrawer
import
scala.collection.mutable.
{
ArrayBuffer
,
ListBuffer
}
import
scala.collection.mutable.
{
ArrayBuffer
,
ListBuffer
}
import
scala.concurrent.ops._
import
scala.concurrent.ops._
import
scala.ref.WeakReference
class
ProfileIconDownloader
(
context
:
Context
,
connectTimeout
:
Int
,
readTimeout
:
Int
)
class
ProfileIconDownloader
(
context
:
Context
,
connectTimeout
:
Int
,
readTimeout
:
Int
)
extends
BaseImageDownloader
(
context
,
connectTimeout
,
readTimeout
)
{
extends
BaseImageDownloader
(
context
,
connectTimeout
,
readTimeout
)
{
...
@@ -674,7 +673,7 @@ class Shadowsocks
...
@@ -674,7 +673,7 @@ class Shadowsocks
if
(!
profile
.
isDefined
)
return
false
if
(!
profile
.
isDefined
)
return
false
new
AlertDialog
.
Builder
(
this
)
new
AlertDialog
.
Builder
(
this
)
.
setMessage
(
String
.
format
Local
(
Locale
.
ENGLISH
,
getString
(
R
.
string
.
remove_profile
),
profile
.
get
.
name
))
.
setMessage
(
String
.
format
(
Locale
.
ENGLISH
,
getString
(
R
.
string
.
remove_profile
),
profile
.
get
.
name
))
.
setCancelable
(
false
)
.
setCancelable
(
false
)
.
setNegativeButton
(
R
.
string
.
no
,
new
DialogInterface
.
OnClickListener
()
{
.
setNegativeButton
(
R
.
string
.
no
,
new
DialogInterface
.
OnClickListener
()
{
override
def
onClick
(
dialog
:
DialogInterface
,
i
:
Int
)
=
dialog
.
cancel
()
override
def
onClick
(
dialog
:
DialogInterface
,
i
:
Int
)
=
dialog
.
cancel
()
...
...
src/main/scala/com/github/shadowsocks/ShadowsocksNatService.scala
View file @
3db8e9d7
...
@@ -41,8 +41,6 @@ package com.github.shadowsocks
...
@@ -41,8 +41,6 @@ package com.github.shadowsocks
import
java.io.File
import
java.io.File
import
java.lang.reflect.
{
InvocationTargetException
,
Method
}
import
java.lang.reflect.
{
InvocationTargetException
,
Method
}
import
java.net.InetAddress
import
java.util
import
java.util.Locale
import
java.util.Locale
import
android.app.
{
Notification
,
NotificationManager
,
PendingIntent
,
Service
}
import
android.app.
{
Notification
,
NotificationManager
,
PendingIntent
,
Service
}
...
...
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