fix: notification pin lock bypass

Closes #242
This commit is contained in:
Zane Schepke 2024-07-27 06:44:02 -04:00
parent 547686069f
commit b8c36ac192
1 changed files with 2 additions and 1 deletions

View File

@ -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,