We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5f6e7c commit 6c14c1cCopy full SHA for 6c14c1c
pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonService.java
@@ -39,13 +39,26 @@ public class PythonService extends Service implements Runnable {
39
private Intent startIntent = null;
40
41
private boolean autoRestartService = false;
42
+ private int start = START_NOT_STICKY;
43
44
public void setAutoRestartService(boolean restart) {
45
autoRestartService = restart;
46
}
47
48
+ public void setTypeStartSticky() {
49
+ start = START_STICKY;
50
+ }
51
+
52
+ public void setTypeStartNotSticky() {
53
+ start = START_NOT_STICKY;
54
55
56
+ public void setTypeStartRedeliverIntent() {
57
+ start = START_REDELIVER_INTENT;
58
59
60
public int startType() {
- return START_NOT_STICKY;
61
+ return start;
62
63
64
@Override
0 commit comments