Goupp 'Directions to' an 'Directions from' in Location menu (a user suggestion)
This commit is contained in:
parent
801ff23e2e
commit
f93e442011
1 changed files with 2 additions and 3 deletions
|
@ -473,6 +473,8 @@ public class MapActivityActions implements DialogProvider {
|
||||||
if(!mapActivity.getRoutingHelper().isFollowingMode() && !mapActivity.getRoutingHelper().isRoutePlanningMode()) {
|
if(!mapActivity.getRoutingHelper().isFollowingMode() && !mapActivity.getRoutingHelper().isRoutePlanningMode()) {
|
||||||
adapter.item(R.string.context_menu_item_directions_to).icons(
|
adapter.item(R.string.context_menu_item_directions_to).icons(
|
||||||
R.drawable.ic_action_gdirections_dark, R.drawable.ic_action_gdirections_light).reg();
|
R.drawable.ic_action_gdirections_dark, R.drawable.ic_action_gdirections_light).reg();
|
||||||
|
adapter.item(R.string.context_menu_item_directions_from).icons(
|
||||||
|
R.drawable.ic_action_gdirections_dark, R.drawable.ic_action_gdirections_light).reg();
|
||||||
}
|
}
|
||||||
final TargetPointsHelper targets = getMyApplication().getTargetPointsHelper();
|
final TargetPointsHelper targets = getMyApplication().getTargetPointsHelper();
|
||||||
if(targets.getPointToNavigate() != null) {
|
if(targets.getPointToNavigate() != null) {
|
||||||
|
@ -485,9 +487,6 @@ public class MapActivityActions implements DialogProvider {
|
||||||
adapter.item(R.string.context_menu_item_destination_point).icons(R.drawable.ic_action_flag_dark,
|
adapter.item(R.string.context_menu_item_destination_point).icons(R.drawable.ic_action_flag_dark,
|
||||||
R.drawable.ic_action_flag_light).reg();
|
R.drawable.ic_action_flag_light).reg();
|
||||||
}
|
}
|
||||||
if(!mapActivity.getRoutingHelper().isFollowingMode() && !mapActivity.getRoutingHelper().isRoutePlanningMode()) {
|
|
||||||
adapter.item(R.string.context_menu_item_directions_from).icons(R.drawable.ic_action_gdirections_dark, R.drawable.ic_action_gdirections_light).reg();
|
|
||||||
}
|
|
||||||
adapter.item(R.string.context_menu_item_search).icons(R.drawable.ic_action_search_dark,
|
adapter.item(R.string.context_menu_item_search).icons(R.drawable.ic_action_search_dark,
|
||||||
R.drawable.ic_action_search_light).reg();
|
R.drawable.ic_action_search_light).reg();
|
||||||
adapter.item(R.string.context_menu_item_share_location).icons(
|
adapter.item(R.string.context_menu_item_share_location).icons(
|
||||||
|
|
Loading…
Reference in a new issue