Skip to content

Commit

Permalink
Added isDestroyed parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
am3n committed Dec 25, 2020
1 parent 694a110 commit 97b546a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions needtool/src/main/java/ir/am3n/needtool/PostBgFg.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ fun postTo(runWhen: When = When.FOREGROUNDED, onIO: Boolean = false, runnable: R
}

object AfterForegrounded {

var isDestroyed = false

var isInBackground = false
set(value) {
field = value
Expand Down Expand Up @@ -82,4 +85,5 @@ object AfterForegrounded {
}
}
}

}

0 comments on commit 97b546a

Please sign in to comment.