string improvement

This commit is contained in:
sonora 2018-06-01 23:12:52 +02:00
parent 4d7b6c607e
commit 16a2a97dc7
3 changed files with 4 additions and 5 deletions

View file

@ -2263,7 +2263,6 @@
<string name="local_index_descr_title">Manage map files.</string>
<string name="local_index_mi_restore">Activate</string>
<string name="local_index_mi_backup">Deactivate</string>
<string name="local_index_mi_reload">Reload from memory card</string>
<string name="local_index_poi_data">POI data</string>
<string name="local_index_address_data">Address data</string>
<string name="local_index_transport_data">Public transport data</string>

View file

@ -631,7 +631,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
}
};
optionsMenuAdapter.addItem(new ContextMenuItem.ItemBuilder()
.setTitleId(R.string.local_index_mi_reload, getContext())
.setTitleId(R.string.shared_string_refresh, getContext())
.setIcon(R.drawable.ic_action_refresh_dark)
.setListener(listener)
.createItem());
@ -786,7 +786,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
}
public void localOptionsMenu(final int itemId) {
if (itemId == R.string.local_index_mi_reload) {
if (itemId == R.string.shared_string_refresh) {
getDownloadActivity().reloadLocalIndexes();
} else if (itemId == R.string.shared_string_delete) {
openSelectionMode(itemId, R.drawable.ic_action_delete_dark,

View file

@ -459,7 +459,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
ItemClickListener listener = new ContextMenuAdapter.ItemClickListener() {
@Override
public boolean onContextMenuClick(ArrayAdapter<ContextMenuItem> adapter, final int itemId, int pos, boolean isChecked, int[] viewCoordinates) {
if (itemId == R.string.local_index_mi_reload) {
if (itemId == R.string.shared_string_refresh) {
reloadTracks();
} else if (itemId == R.string.shared_string_show_on_map) {
openShowOnMapMode();
@ -486,7 +486,7 @@ public class AvailableGPXFragment extends OsmandExpandableListFragment {
.setListener(listener).createItem());
optionsMenuAdapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.shared_string_delete, getActivity())
.setIcon(R.drawable.ic_action_delete_dark).setListener(listener).createItem());
optionsMenuAdapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.local_index_mi_reload, getActivity())
optionsMenuAdapter.addItem(new ContextMenuItem.ItemBuilder().setTitleId(R.string.shared_string_refresh, getActivity())
.setIcon(R.drawable.ic_action_refresh_dark).setListener(listener).createItem());
OsmandPlugin.onOptionsMenuActivity(getActivity(), this, optionsMenuAdapter);
for (int j = 0; j < optionsMenuAdapter.length(); j++) {