Commit d516af3c authored by Max Lv's avatar Max Lv

fix a FC

parent 39c765c7
...@@ -164,6 +164,11 @@ class ShadowVpnService extends VpnService { ...@@ -164,6 +164,11 @@ class ShadowVpnService extends VpnService {
def handleCommand(intent: Intent) { def handleCommand(intent: Intent) {
if (intent == null) {
stopSelf()
return
}
if (VpnService.prepare(this) != null) { if (VpnService.prepare(this) != null) {
val i = new Intent(this, classOf[ShadowVpnActivity]) val i = new Intent(this, classOf[ShadowVpnActivity])
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
......
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