Revert "IPNReceiver: Add intents to connect and disconnect VPN (#84)"
Reverting according to discussion in
https://github.com/tailscale/tailscale/issues/3547#issuecomment-1465035410
This reverts commit 51a53e5472
.
release-branch/1.38
parent
6499fb845e
commit
d0c45c1de1
@ -1,20 +0,0 @@
|
||||
package com.tailscale.ipn;
|
||||
|
||||
import android.content.BroadcastReceiver;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
public class IPNReceiver extends BroadcastReceiver {
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (intent.getAction() == "com.tailscale.ipn.CONNECT_VPN") {
|
||||
connect();
|
||||
} else if (intent.getAction() == "com.tailscale.ipn.DISCONNECT_VPN") {
|
||||
disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
private native void connect();
|
||||
private native void disconnect();
|
||||
}
|
Loading…
Reference in New Issue