This commit is contained in:
Max Lv
2013-06-03 10:10:43 +08:00
parent 39c765c7ce
commit d516af3ca0
@@ -164,6 +164,11 @@ class ShadowVpnService extends VpnService {
def handleCommand(intent: Intent) {
if (intent == null) {
stopSelf()
return
}
if (VpnService.prepare(this) != null) {
val i = new Intent(this, classOf[ShadowVpnActivity])
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)