Skip to content

Commit

Permalink
Start sticky when not stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Nov 8, 2015
1 parent 17015fd commit b1ea4f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public int onStartCommand(Intent intent, int flags, int startId) {
msg.obj = intent;
mServiceHandler.sendMessage(msg);

return START_STICKY;
return (cmd == Command.stop ? START_NOT_STICKY : START_STICKY);
}

@Override
Expand Down

0 comments on commit b1ea4f4

Please sign in to comment.