fix a bug in autostart

This commit is contained in:
Max Lv
2014-11-17 14:48:57 +08:00
parent 014692cb84
commit 8fb5d7f8c6
@@ -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