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

Commit 3bc8ef0

Browse files
committed
context is a local var
1 parent 1b950d1 commit 3bc8ef0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

location_permissions/gps_example/gps_example.pde

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ String currentProvider = "";
3131
// Android fonts
3232
String[] fontList;
3333
PFont androidFont;
34-
Context context;
3534

3635
boolean hasLocation = false;
3736

@@ -68,7 +67,7 @@ void initLocation() {
6867
//context = getActivity();
6968

7069
// For 4.0+ versions of the mode
71-
context = surface.getContext();
70+
Context context = surface.getContext();
7271

7372
locationListener = new MyLocationListener();
7473
locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);

0 commit comments

Comments
 (0)