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 fcc882f11..1fe5cbb41 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
@@ -120,14 +120,13 @@ public class NearbyActivity extends NavigationBaseActivity {
} else {
//If permission not granted, display notification that Nearby Places cannot be displayed
int duration = Toast.LENGTH_LONG;
- Toast toast = Toast.makeText(this, "Nearby places cannot be found without location permissions", duration);
+ Toast toast = Toast.makeText(this, R.string.no_location_permission, duration);
toast.show();
}
}
}
}
-
protected void checkGps() {
LocationManager manager = (LocationManager) getSystemService(LOCATION_SERVICE);
if (!manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1a3e780f2..8d0a53b63 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -194,6 +194,7 @@ Tap this message (or hit back) to skip this step.
Logout
Tutorial
+ Nearby places cannot be found without location permissions
no description found
Commons Article
WikiData Article