From 4a53db8476b390ed7cbebda65b73ddefef14cea6 Mon Sep 17 00:00:00 2001 From: Josephine Lim Date: Mon, 15 May 2017 11:20:53 +0200 Subject: [PATCH] Add string resources --- .../main/java/fr/free/nrw/commons/nearby/NearbyActivity.java | 4 +--- app/src/main/res/values/strings.xml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) 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 e64a29229..633be2794 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 @@ -160,10 +160,8 @@ public class NearbyActivity extends BaseActivity { gsonCurLatLng = gson.toJson(curLatLang); if (placeList.size() == 0) { - CharSequence text = "No nearby places found"; int duration = Toast.LENGTH_SHORT; - - Toast toast = Toast.makeText(mContext, text, duration); + Toast toast = Toast.makeText(mContext, R.string.no_nearby, duration); toast.show(); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 10616fed5..c2df9e32d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -157,6 +157,7 @@ Tap this message (or hit back) to skip this step. Optional permission: Get current location for category suggestions OK Nearby Places + No nearby places found Warning This file already exists on Commons. Are you sure you want to proceed? Yes