Commit 8fb5d7f8 authored by Max Lv's avatar Max Lv

fix a bug in autostart

parent 014692cb
...@@ -72,8 +72,7 @@ class ShadowsocksRunnerActivity extends Activity { ...@@ -72,8 +72,7 @@ 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.LOLLIPOP vpnEnabled = if (!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