mirror of
https://github.com/markqvist/Sideband.git
synced 2025-05-06 08:24:57 -04:00
Stop service with app shutdown, but persist on UI close
This commit is contained in:
parent
bec6bda2f6
commit
8b275cbe7f
3 changed files with 31 additions and 15 deletions
|
@ -177,7 +177,7 @@ public class PythonService extends Service implements Runnable {
|
|||
super.onTaskRemoved(rootIntent);
|
||||
//sticky servcie runtime/restart is managed by the OS. leave it running when app is closed
|
||||
if (startType() != START_STICKY) {
|
||||
stopSelf();
|
||||
//stopSelf();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue