Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit 4c53eb4

Browse files
committed
fix boolean value being checked for when comparing configurations
1 parent 15a783b commit 4c53eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

topl-service/src/main/java/io/matthewnelson/topl_service/lifecycle/BackgroundManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class BackgroundManager internal constructor(
224224
class Policy internal constructor (private val policyBuilder: Builder) {
225225

226226
internal fun configurationIsCompliant(stopServiceOnTaskRemoved: Boolean): Boolean {
227-
return if (stopServiceOnTaskRemoved) {
227+
return if (!stopServiceOnTaskRemoved) {
228228
policyBuilder.chosenPolicy == BackgroundPolicy.RUN_IN_FOREGROUND &&
229229
policyBuilder.killAppIfTaskIsRemoved
230230
} else {

0 commit comments

Comments
 (0)