File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
app/app/src/main/java/seven/drawalive/nodebase Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ protected void onCreate(Bundle savedInstanceState) {
44
44
@ Override
45
45
protected void onDestroy () {
46
46
Permission .keepScreen (this , false );
47
+ // if want to keep service running in backend
48
+ // comment out this line and add "Stop Service" somewhere
47
49
NodeService .stopService (this );
48
50
super .onDestroy ();
49
51
}
Original file line number Diff line number Diff line change @@ -120,7 +120,10 @@ public void onDestroy() {
120
120
}
121
121
122
122
private void stopNodeApps () {
123
- for (String name : services .keySet ()) {
123
+ int n = services .keySet ().size ();
124
+ String [] keys = new String [n ];
125
+ services .keySet ().toArray (keys );
126
+ for (String name : keys ) {
124
127
stopNodeApp (name );
125
128
}
126
129
}
You can’t perform that action at this time.
0 commit comments