We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a6bcbc commit 94bf106Copy full SHA for 94bf106
1 file changed
android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundService.kt
@@ -61,7 +61,7 @@ class ForegroundService : Service() {
61
try {
62
// Check if the given intent is a LaunchIntent.
63
val isLaunchIntent = (intent.action == Intent.ACTION_MAIN) &&
64
- intent.categories.contains(Intent.CATEGORY_LAUNCHER)
+ (intent.categories?.contains(Intent.CATEGORY_LAUNCHER) == true)
65
if (!isLaunchIntent) {
66
// Log.d(TAG, "not LaunchIntent")
67
return
0 commit comments