diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/build.gradle.kts | 1 | ||||
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/main/build.gradle.kts b/main/build.gradle.kts index 94f0af41..984f075f 100644 --- a/main/build.gradle.kts +++ b/main/build.gradle.kts @@ -12,7 +12,6 @@ plugins { } android { - buildToolsVersion = "33.0.1" buildFeatures { aidl = true } diff --git a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java index 6f20d414..a1411b5e 100644 --- a/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java +++ b/main/src/main/java/de/blinkt/openvpn/core/OpenVPNService.java @@ -309,7 +309,7 @@ public class OpenVPNService extends VpnService implements StateListener, Callbac nbuilder.setOngoing(true); nbuilder.setSmallIcon(icon); - if (status == LEVEL_WAITING_FOR_USER_INPUT) { + if (status == LEVEL_WAITING_FOR_USER_INPUT && intent != null) { PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_IMMUTABLE); nbuilder.setContentIntent(pIntent); } else { |