From cd001d4abfcd81712d676be396a9e42e2ef03b96 Mon Sep 17 00:00:00 2001 From: Void <254280517+voidece@users.noreply.github.com> Date: Wed, 14 Oct 2026 09:45:26 +0000 Subject: [PATCH] fix: skip notification permission request while biometric lock is enabled --- app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt b/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt index 4ce09bd44ae..8daf168c1c1 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/CommonActivity.kt @@ -52,6 +52,7 @@ import com.lagradost.cloudstream3.ui.settings.Globals.TV import com.lagradost.cloudstream3.ui.settings.Globals.updateTv import com.lagradost.cloudstream3.ui.settings.extensions.PluginAdapter import com.lagradost.cloudstream3.utils.AppContextUtils.isRtl +import com.lagradost.cloudstream3.utils.BiometricAuthenticator.isAuthEnabled import com.lagradost.cloudstream3.utils.Coroutines.ioSafe import com.lagradost.cloudstream3.utils.Event import com.lagradost.cloudstream3.utils.UIHelper.showInputMethod @@ -266,7 +267,9 @@ object CommonActivity { } // Ask for notification permissions on Android 13 + // Not while biometric locked, the dialog cancels the biometric prompt if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU && + !isAuthEnabled(componentActivity) && ContextCompat.checkSelfPermission( componentActivity, Manifest.permission.POST_NOTIFICATIONS