mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Remove hardcoded string
This commit is contained in:
parent
93acd40926
commit
ec6ba8cf87
2 changed files with 2 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue