mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-10-03 17:46:46 -04:00
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:
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user