mirror of
https://gitlab.com/oeffi/oeffi.git
synced 2025-07-07 06:08:51 +00:00
StationContextMenu: Fix naming of OpenStreetMap in IDs and strings.
This commit is contained in:
parent
099d1cb9b0
commit
7c673419c2
4 changed files with 8 additions and 8 deletions
|
@ -11,9 +11,9 @@
|
|||
android:orderInCategory="1"
|
||||
android:title="@string/map_dialog_amazon_maps" />
|
||||
<item
|
||||
android:id="@+id/station_map_context_open_street_maps"
|
||||
android:id="@+id/station_map_context_openstreetmap"
|
||||
android:orderInCategory="1"
|
||||
android:title="@string/map_dialog_open_street_maps" />
|
||||
android:title="@string/map_dialog_openstreetmap" />
|
||||
<item
|
||||
android:id="@+id/station_map_context_google_street_view"
|
||||
android:orderInCategory="1"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<string name="map_dialog_google_maps">Google Maps</string>
|
||||
<string name="map_dialog_amazon_maps">Amazon Maps</string>
|
||||
<string name="map_dialog_open_street_maps">Open Street Maps</string>
|
||||
<string name="map_dialog_openstreetmap">OpenStreetMap</string>
|
||||
<string name="map_dialog_google_street_view">Street View</string>
|
||||
<string name="map_dialog_google_navigation">Navigation für Fußgänger</string>
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<string name="map_dialog_google_maps">Google Maps</string>
|
||||
<string name="map_dialog_amazon_maps">Amazon Maps</string>
|
||||
<string name="map_dialog_open_street_maps">Open Street Maps</string>
|
||||
<string name="map_dialog_openstreetmap">OpenStreetMap</string>
|
||||
<string name="map_dialog_google_street_view">Street View</string>
|
||||
<string name="map_dialog_google_navigation">Walking Directions</string>
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ public class StationContextMenu extends PopupMenu {
|
|||
new MenuInflater(context).inflate(R.menu.station_map_context, menu);
|
||||
final MenuItem googleMapsItem = menu.findItem(R.id.station_map_context_google_maps);
|
||||
final MenuItem amazonMapsItem = menu.findItem(R.id.station_map_context_amazon_maps);
|
||||
final MenuItem openStreetMapsItem = menu.findItem(R.id.station_map_context_open_street_maps);
|
||||
final MenuItem openStreetMapItem = menu.findItem(R.id.station_map_context_openstreetmap);
|
||||
final MenuItem googleStreetViewItem = menu.findItem(R.id.station_map_context_google_street_view);
|
||||
final MenuItem googleNavigationItem = menu.findItem(R.id.station_map_context_google_navigation);
|
||||
|
||||
|
@ -146,10 +146,10 @@ public class StationContextMenu extends PopupMenu {
|
|||
"com.amazon.geo.client.renderer.MapsAppActivityDuke"));
|
||||
prepareMapMenuItem(context, amazonMapsItem, amazonMapsIntent);
|
||||
|
||||
final Intent openStreetMapsIntent = new Intent(Intent.ACTION_VIEW,
|
||||
final Intent openStreetMapIntent = new Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse(String.format(Locale.ENGLISH, "osmand.geo:%.6f,%.6f?q=%.6f,%.6f%s", lat, lon, lat, lon,
|
||||
name != null ? '(' + URLEncoder.encode(name.replaceAll("[()]", "")) + ')' : "")));
|
||||
prepareMapMenuItem(context, openStreetMapsItem, openStreetMapsIntent);
|
||||
prepareMapMenuItem(context, openStreetMapItem, openStreetMapIntent);
|
||||
|
||||
final Intent googleStreetViewIntent = new Intent(Intent.ACTION_VIEW,
|
||||
Uri.parse(String.format(Locale.ENGLISH, "google.streetview:cbll=%.6f,%.6f", lat, lon)));
|
||||
|
@ -166,7 +166,7 @@ public class StationContextMenu extends PopupMenu {
|
|||
} else {
|
||||
googleMapsItem.setVisible(false);
|
||||
amazonMapsItem.setVisible(false);
|
||||
openStreetMapsItem.setVisible(false);
|
||||
openStreetMapItem.setVisible(false);
|
||||
googleStreetViewItem.setVisible(false);
|
||||
googleNavigationItem.setVisible(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue