File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,26 @@ public class PythonService extends Service implements Runnable {
39
39
private Intent startIntent = null ;
40
40
41
41
private boolean autoRestartService = false ;
42
+ private int start = START_NOT_STICKY ;
42
43
43
44
public void setAutoRestartService (boolean restart ) {
44
45
autoRestartService = restart ;
45
46
}
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
+
47
60
public int startType () {
48
- return START_NOT_STICKY ;
61
+ return start ;
49
62
}
50
63
51
64
@ Override
You can’t perform that action at this time.
0 commit comments