From 54bde96f9fbf3f6cfa68df57879e52237d966d0e Mon Sep 17 00:00:00 2001 From: misaochan Date: Sat, 14 Apr 2018 19:28:02 +1000 Subject: [PATCH] Add logging to onPermissionsRequestResult --- 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 176c45c36..bc4503d71 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 switch (requestCode) { case LOCATION_REQUEST: { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { + Timber.d("Location permission granted, refreshing view"); refreshView(LocationServiceManager.LocationChangeType.LOCATION_SIGNIFICANTLY_CHANGED); } else { //If permission not granted, go to page that says Nearby Places cannot be displayed