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 {
def isVpnEnabled: Boolean = {
if (vpnEnabled < 0) {
vpnEnabled = if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP
|| !Console.isRoot) {
vpnEnabled = if (!Console.isRoot) {
1
} else {
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