Commit aeee9c2f authored by Max Lv's avatar Max Lv

fix an issue for autostart

parent 70dc8e99
...@@ -72,8 +72,8 @@ class ShadowsocksRunnerActivity extends Activity { ...@@ -72,8 +72,8 @@ class ShadowsocksRunnerActivity extends Activity {
def isVpnEnabled: Boolean = { def isVpnEnabled: Boolean = {
if (vpnEnabled < 0) { if (vpnEnabled < 0) {
vpnEnabled = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH vpnEnabled = if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP
&& !Console.isRoot) { || !Console.isRoot) {
1 1
} else { } else {
0 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment