Skip to content

Commit cc63362

Browse files
committed
formatting code
1 parent ecfbe23 commit cc63362

File tree

4 files changed

+28
-17
lines changed

4 files changed

+28
-17
lines changed

core/src/processing/android/PFragment.java

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,35 +178,45 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
178178
@Override
179179
public void onStart() {
180180
super.onStart();
181-
if (sketch != null) sketch.onStart();
181+
if (sketch != null) {
182+
sketch.onStart();
183+
}
182184
}
183185

184186

185187
@Override
186188
public void onResume() {
187189
super.onResume();
188-
if (sketch != null) sketch.onResume();
190+
if (sketch != null) {
191+
sketch.onResume();
192+
}
189193
}
190194

191195

192196
@Override
193197
public void onPause() {
194198
super.onPause();
195-
if (sketch != null) sketch.onPause();
199+
if (sketch != null) {
200+
sketch.onPause();
201+
}
196202
}
197203

198204

199205
@Override
200206
public void onStop() {
201207
super.onStop();
202-
if (sketch != null) sketch.onStop();
208+
if (sketch != null) {
209+
sketch.onStop();
210+
}
203211
}
204212

205213

206214
@Override
207215
public void onDestroy() {
208216
super.onDestroy();
209-
if (sketch != null) sketch.onDestroy();
217+
if (sketch != null) {
218+
sketch.onDestroy();
219+
}
210220
}
211221

212222

core/src/processing/android/PWatchFaceCanvas.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ public void onComplicationDataUpdate(
352352
@Override
353353
public void onDestroy() {
354354
super.onDestroy();
355-
if (sketch != null) sketch.onDestroy();
355+
if (sketch != null) {
356+
sketch.onDestroy();
357+
}
356358
}
357359

358360

core/src/processing/android/PWatchFaceGLES.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@ public void onComplicationDataUpdate(
353353
@Override
354354
public void onDestroy() {
355355
super.onDestroy();
356-
if (sketch != null) sketch.onDestroy();
356+
if (sketch != null) {
357+
sketch.onDestroy();
358+
}
357359
}
358360

359361

core/src/processing/core/PApplet.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858

5959
public class PApplet extends Object implements PConstants {
6060

61-
//static final public boolean DEBUG = true;
62-
static final public boolean DEBUG = false;
61+
static final public boolean DEBUG = true;
62+
// static final public boolean DEBUG = false;
6363

6464
// Convenience public constant holding the SDK version, akin to platform in Java mode
6565
static final public int SDK = Build.VERSION.SDK_INT;
@@ -562,14 +562,6 @@ public void onPause() {
562562
}
563563

564564

565-
public void onDestroy() {
566-
dispose();
567-
if (PApplet.DEBUG) {
568-
System.out.println("PApplet.onDestroy() called");
569-
}
570-
}
571-
572-
573565
public void onStart() {
574566
start();
575567
}
@@ -584,6 +576,11 @@ public void onCreate(Bundle savedInstanceState) {
584576
}
585577

586578

579+
public void onDestroy() {
580+
dispose();
581+
}
582+
583+
587584
public void onActivityResult(int requestCode, int resultCode, Intent data) {
588585
}
589586

0 commit comments

Comments
 (0)