Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-04-11 10:59:25 +02:00
commit 569fe4eaae

View file

@ -90,9 +90,7 @@ public class QuickActionFactory {
} }
if (OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null) { if (OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null) {
quickActions.add(new AddPOIAction()); quickActions.add(new AddPOIAction());
quickActions.add(new ShowHideOSMBugAction());
quickActions.add(new AddOSMBugAction()); quickActions.add(new AddOSMBugAction());
} }
@ -108,13 +106,19 @@ public class QuickActionFactory {
quickActions.add(new QuickAction(0, R.string.quick_action_add_configure_map)); quickActions.add(new QuickAction(0, R.string.quick_action_add_configure_map));
QuickAction favorites = new ShowHideFavoritesAction(); QuickAction favorites = new ShowHideFavoritesAction();
if (!favorites.hasInstanceInList(active)) { if (!favorites.hasInstanceInList(active)) {
quickActions.add(favorites); quickActions.add(favorites);
} }
quickActions.add(new ShowHidePoiAction()); quickActions.add(new ShowHidePoiAction());
if (OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null) {
QuickAction showHideOSMBugAction = new ShowHideOSMBugAction();
if (!showHideOSMBugAction.hasInstanceInList(active)) {
quickActions.add(showHideOSMBugAction);
}
}
quickActions.add(new MapStyleAction()); quickActions.add(new MapStyleAction());
if (OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) != null) { if (OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) != null) {