use correct "Directions" label in all point context menus
This commit is contained in:
parent
c9b78dafb6
commit
910b9316a1
3 changed files with 3 additions and 3 deletions
|
@ -99,7 +99,7 @@ public class NavigatePointFragment extends SherlockFragment implements SearchAct
|
|||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||
OsmandApplication app = (OsmandApplication) getActivity().getApplication();
|
||||
boolean light = app.getSettings().isLightActionBar();
|
||||
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, NAVIGATE_TO, 0, R.string.get_directions).setShowAsActionFlags(
|
||||
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, NAVIGATE_TO, 0, R.string.context_menu_item_directions_to).setShowAsActionFlags(
|
||||
MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
|
||||
menuItem = menuItem.setIcon(light ? R.drawable.ic_action_gdirections_light : R.drawable.ic_action_gdirections_dark);
|
||||
menuItem.setOnMenuItemClickListener(new OnMenuItemClickListener() {
|
||||
|
|
|
@ -90,7 +90,7 @@ public class SearchAddressFragment extends SherlockFragment {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, NAVIGATE_TO, 0, R.string.get_directions).setShowAsActionFlags(
|
||||
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, NAVIGATE_TO, 0, R.string.context_menu_item_directions_to).setShowAsActionFlags(
|
||||
MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
|
||||
menuItem = menuItem.setIcon(light ? R.drawable.ic_action_gdirections_light : R.drawable.ic_action_gdirections_dark);
|
||||
menuItem.setOnMenuItemClickListener(new OnMenuItemClickListener() {
|
||||
|
|
|
@ -520,7 +520,7 @@ public abstract class SearchByNameAbstractActivity<T> extends OsmandListActivity
|
|||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
if (sequentialSearch) {
|
||||
boolean light = ((OsmandApplication) getApplication()).getSettings().isLightActionBar();
|
||||
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, NAVIGATE_TO, 0, R.string.get_directions)
|
||||
com.actionbarsherlock.view.MenuItem menuItem = menu.add(0, NAVIGATE_TO, 0, R.string.context_menu_item_directions_to)
|
||||
.setShowAsActionFlags(MenuItem.SHOW_AS_ACTION_IF_ROOM | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
|
||||
menuItem = menuItem.setIcon(light ? R.drawable.ic_action_gdirections_light
|
||||
: R.drawable.ic_action_gdirections_dark);
|
||||
|
|
Loading…
Reference in a new issue