Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
772bc18eb8 | ||
|
|
d503818169 | ||
|
|
b209e73386 | ||
|
|
6c381b0ecc | ||
|
|
e3f0fa6756 |
+1
-1
@@ -1,4 +1,4 @@
|
||||
addSbtPlugin("org.scala-android" % "sbt-android" % "1.6.16")
|
||||
addSbtPlugin("org.scala-android" % "sbt-android" % "1.6.17")
|
||||
|
||||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.1.10")
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools" package="com.github.shadowsocks"
|
||||
android:versionCode="152"
|
||||
android:versionName="3.1.1">
|
||||
android:versionCode="155"
|
||||
android:versionName="3.1.3">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
|
||||
Submodule src/main/jni/shadowsocks-libev updated: e5c3254450...6e48d25eab
@@ -110,6 +110,7 @@
|
||||
<item>绕过局域网地址</item>
|
||||
<item>绕过中国大陆地址</item>
|
||||
<item>绕过局域网及中国大陆地址</item>
|
||||
<item>仅代理国内无法访问的地址</item>
|
||||
</string-array>
|
||||
|
||||
<string name="action_apply_all">应用设置到所有配置文件</string>
|
||||
|
||||
@@ -112,6 +112,7 @@
|
||||
<item>略過區域網路位址</item>
|
||||
<item>略過中國大陸位址</item>
|
||||
<item>略過區域網路及中國大陸位址</item>
|
||||
<item>僅代理大陸屏蔽位址</item>
|
||||
</string-array>
|
||||
|
||||
<string name="action_apply_all">應用設置到所有配置文件</string>
|
||||
|
||||
@@ -207,7 +207,22 @@ class ShadowsocksSettings extends PreferenceFragment with OnSharedPreferenceChan
|
||||
}
|
||||
|
||||
def refreshProfile() {
|
||||
profile = app.currentProfile.get
|
||||
val profile = app.currentProfile match {
|
||||
case Some(profile) => profile
|
||||
case None => {
|
||||
app.profileManager.getFirstProfile match {
|
||||
case Some(profile) => {
|
||||
app.profileId(profile.id)
|
||||
profile
|
||||
}
|
||||
case None => {
|
||||
val default = app.profileManager.createDefault()
|
||||
app.profileId(default.id)
|
||||
default
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
isProxyApps.setChecked(profile.proxyApps)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user