Add extra logging of incoming intents

to better debug what is happening when we sometimes don't react properly to intents
This commit is contained in:
Torsten Grote committed 2026-04-28 08:58:40 -03:00
1 parent ff6c02afb5
commit 9741fe98a8
1 file changed
+8
@@ -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)
}
}