From 9741fe98a8d8e60c213927b835dbb22f50325592 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 14 Apr 2026 08:37:07 -0300 Subject: [PATCH] Add extra logging of incoming intents to better debug what is happening when we sometimes don't react properly to intents --- app/src/main/kotlin/org/fdroid/MainActivity.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/kotlin/org/fdroid/MainActivity.kt b/app/src/main/kotlin/org/fdroid/MainActivity.kt index 19e8a00f6..24e700902 100644 --- a/app/src/main/kotlin/org/fdroid/MainActivity.kt +++ b/app/src/main/kotlin/org/fdroid/MainActivity.kt @@ -1,9 +1,12 @@ package org.fdroid import android.Manifest.permission.POST_NOTIFICATIONS +import android.app.ComponentCaller +import android.content.Intent import android.content.pm.PackageManager.PERMISSION_GRANTED import android.os.Build.VERSION.SDK_INT import android.os.Bundle +import android.util.Log import android.view.WindowManager.LayoutParams.FLAG_SECURE import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge @@ -58,4 +61,9 @@ class MainActivity : AppCompatActivity() { requestPermissionLauncher.launchSafe(POST_NOTIFICATIONS) } } + + override fun onNewIntent(intent: Intent, caller: ComponentCaller) { + Log.i("MainActivity", "onNewIntent: $intent, caller: $caller") + super.onNewIntent(intent, caller) + } }