Remove hardcoded string

This commit is contained in:
misaochan 2017-05-31 19:49:19 +10:00
parent 93acd40926
commit ec6ba8cf87
2 changed files with 2 additions and 2 deletions

View file

@ -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)) {

View file

@ -194,6 +194,7 @@ Tap this message (or hit back) to skip this step.</string>
<string name="navigation_item_logout">Logout</string>
<string name="navigation_item_info">Tutorial</string>
<string name="no_location_permission">Nearby places cannot be found without location permissions</string>
<string name="no_description_found">no description found</string>
<string name="nearby_info_menu_commons_article">Commons Article</string>
<string name="nearby_info_menu_wikidata_article">WikiData Article</string>