From b8c36ac19230be8d8bdc2df1c35379df5db3e6d1 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Sat, 27 Jul 2024 06:44:02 -0400 Subject: [PATCH] fix: notification pin lock bypass Closes #242 --- .../service/notification/WireGuardNotification.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/WireGuardNotification.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/WireGuardNotification.kt index eb6c951..4259c36 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/WireGuardNotification.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/WireGuardNotification.kt @@ -10,6 +10,7 @@ import android.graphics.Color import androidx.core.app.NotificationCompat import com.zaneschepke.wireguardautotunnel.R import com.zaneschepke.wireguardautotunnel.ui.MainActivity +import com.zaneschepke.wireguardautotunnel.ui.SplashActivity import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject @@ -59,7 +60,7 @@ class WireGuardNotification @Inject constructor(@ApplicationContext private val } notificationManager.createNotificationChannel(channel) val pendingIntent: PendingIntent = - Intent(context, MainActivity::class.java).let { notificationIntent -> + Intent(context, SplashActivity::class.java).let { notificationIntent -> PendingIntent.getActivity( context, 0,