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() + ",", "");