diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-12-01 14:14:24 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-12-01 14:14:24 +0100 |
commit | e827c55cdd14588585b1d12e4f8cba0ffb69381d (patch) | |
tree | 96d044d71ac7fd12a1167314d9385316ea8f3a2f /src/de/blinkt/openvpn/core | |
parent | d5e947f2dd9ba93a4bb6a801d0ef8ad21d43d8d2 (diff) |
Implementing user pause/resume from the external API
Diffstat (limited to 'src/de/blinkt/openvpn/core')
-rw-r--r-- | src/de/blinkt/openvpn/core/OpenVpnService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/core/OpenVpnService.java b/src/de/blinkt/openvpn/core/OpenVpnService.java index ab21fc1b..3a6cc802 100644 --- a/src/de/blinkt/openvpn/core/OpenVpnService.java +++ b/src/de/blinkt/openvpn/core/OpenVpnService.java @@ -256,6 +256,12 @@ public class OpenVpnService extends VpnService implements StateListener, Callbac mDeviceStateReceiver = null; } + public void userPause (boolean shouldBePaused) + { + if (mDeviceStateReceiver != null) + mDeviceStateReceiver.userPause(shouldBePaused); + } + @Override public int onStartCommand(Intent intent, int flags, int startId) { |