Skip to content

Commit

Permalink
Use START_STICKY
Browse files Browse the repository at this point in the history
According to Android official documentations, START_STICKY is used for services that are explicitly started and stopped as needed, while START_NOT_STICKY or START_REDELIVER_INTENT are used for services that should only remain running while processing any commands sent to them.
  • Loading branch information
Mygod authored Aug 4, 2023
1 parent 9899a34 commit 71c6742
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ class BraveVPNService :
observeChanges()
}
}
return Service.START_REDELIVER_INTENT
return Service.START_STICKY
}

private fun startOrbotAsyncIfNeeded() {
Expand Down

0 comments on commit 71c6742

Please sign in to comment.