fix an issue for autostart

This commit is contained in:
Max Lv
2014-10-19 20:38:16 +08:00
parent 70dc8e9995
commit aeee9c2fac
@@ -72,8 +72,8 @@ class ShadowsocksRunnerActivity extends Activity {
def isVpnEnabled: Boolean = {
if (vpnEnabled < 0) {
vpnEnabled = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH
&& !Console.isRoot) {
vpnEnabled = if (Build.VERSION.SDK_INT == Build.VERSION_CODES.LOLLIPOP
|| !Console.isRoot) {
1
} else {
0