From cae1baa6e54c80ab13b4b277397db8b1e449de23 Mon Sep 17 00:00:00 2001 From: PaulStets Date: Fri, 26 Jan 2018 13:46:32 +0200 Subject: [PATCH] Boat navigation is enabled with Nautical plugin --- .../net/osmand/plus/openseamapsplugin/NauticalMapsPlugin.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/openseamapsplugin/NauticalMapsPlugin.java b/OsmAnd/src/net/osmand/plus/openseamapsplugin/NauticalMapsPlugin.java index 2487b30cab..4962c50830 100644 --- a/OsmAnd/src/net/osmand/plus/openseamapsplugin/NauticalMapsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/openseamapsplugin/NauticalMapsPlugin.java @@ -91,8 +91,7 @@ public class NauticalMapsPlugin extends OsmandPlugin { public void addBoatProfile(boolean flag) { Set selectedProfiles = new LinkedHashSet<>(ApplicationMode.values(app.getSettings())); boolean isBoatEnabled = selectedProfiles.contains(ApplicationMode.BOAT); - if((!isBoatEnabled && flag) || - ((isBoatEnabled && !flag))) { + if((!isBoatEnabled && flag) || (isBoatEnabled && !flag)) { String s = app.getSettings().AVAILABLE_APP_MODES.get(); String currModes = flag ? s + ApplicationMode.BOAT.getStringKey() + "," : s.replace(ApplicationMode.BOAT.getStringKey() + ",", "");