Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,26 @@ public class PythonService extends Service implements Runnable {
private Intent startIntent = null;

private boolean autoRestartService = false;
private int start = START_NOT_STICKY;

public void setAutoRestartService(boolean restart) {
autoRestartService = restart;
}

public void setTypeStartSticky() {
start = START_STICKY;
}

public void setTypeStartNotSticky() {
start = START_NOT_STICKY;
}

public void setTypeStartRedeliverIntent() {
start = START_REDELIVER_INTENT;
}

public int startType() {
return START_NOT_STICKY;
return start;
}

@Override
Expand Down