Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 1b950d1

Browse files
committed
some formatting
1 parent 14c3348 commit 1b950d1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Diff for: location_permissions/gps_example/gps_example.pde

-17
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ boolean hasLocation = false;
3737

3838
void setup () {
3939
size(480, 640, P2D);
40-
// Sketch stays in portrait mode, even when the phone is rotated
4140
orientation(PORTRAIT);
42-
// Select a font to use
4341
fontList = PFont.list();
4442
androidFont = createFont(fontList[0], 26, true);
4543
textFont(androidFont);
@@ -58,25 +56,10 @@ void draw() {
5856
}
5957
}
6058

61-
6259
void onPermissionsGranted() {
6360
initLocation();
6461
}
6562

66-
/*
67-
// Override the activity class methods
68-
void onResume() {
69-
super.onResume();
70-
}
71-
72-
void onPause() {
73-
super.onPause();
74-
//locationManager.removeGpsStatusListener(locationListener);
75-
}
76-
*/
77-
78-
/*****************************************************************/
79-
8063
void initLocation() {
8164
if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION) ||
8265
checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION)) {

0 commit comments

Comments
 (0)