We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6316689 commit e698150Copy full SHA for e698150
android/src/main/kotlin/com/pravera/flutter_foreground_task/utils/ForegroundServiceUtils.kt
@@ -17,7 +17,7 @@ class ForegroundServiceUtils {
17
val pm = context.packageManager
18
val cName = ComponentName(context, ForegroundService::class.java)
19
val flags = pm.getServiceInfo(cName, PackageManager.GET_META_DATA).flags
20
- (flags and ServiceInfo.FLAG_STOP_WITH_TASK) == 1
+ (flags and ServiceInfo.FLAG_STOP_WITH_TASK) != 0
21
} catch (e: NameNotFoundException) {
22
Log.e(TAG, "isSetStopWithTaskFlag >> The service component cannot be found on the system.")
23
true
@@ -27,4 +27,4 @@ class ForegroundServiceUtils {
27
}
28
29
30
-}
+}
0 commit comments