From f0357fca018d1d1a9e5ec99b63ab2248d67a0169 Mon Sep 17 00:00:00 2001 From: misaochan Date: Wed, 18 Apr 2018 19:25:50 +1000 Subject: [PATCH] Add checkGPS comment --- app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java index f70f46856..e38468fde 100644 --- a/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java +++ b/app/src/main/java/fr/free/nrw/commons/nearby/NearbyActivity.java @@ -158,6 +158,7 @@ public class NearbyActivity extends NavigationBaseActivity implements LocationUp case LOCATION_REQUEST: { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { Timber.d("Location permission granted, refreshing view"); + //Still need to check if GPS is enabled checkGps(); lastKnownLocation = locationManager.getLKL(); refreshView(LocationServiceManager.LocationChangeType.PERMISSION_JUST_GRANTED);