Fix review

This commit is contained in:
Dima-1 2020-06-12 10:45:41 +03:00
parent 02ba511abf
commit 9c44027e99
2 changed files with 4 additions and 3 deletions

View file

@ -6,6 +6,8 @@ import net.osmand.plus.R;
import net.osmand.plus.activities.MapActivity; import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.settings.fragments.BaseSettingsFragment; import net.osmand.plus.settings.fragments.BaseSettingsFragment;
import static net.osmand.plus.settings.fragments.BaseSettingsFragment.SettingsScreenType.*;
public class NauticalBridgeHeightWarningCard extends WarningCard { public class NauticalBridgeHeightWarningCard extends WarningCard {
public NauticalBridgeHeightWarningCard(@NonNull MapActivity mapActivity) { public NauticalBridgeHeightWarningCard(@NonNull MapActivity mapActivity) {
@ -17,7 +19,6 @@ public class NauticalBridgeHeightWarningCard extends WarningCard {
@Override @Override
protected void onLinkClicked() { protected void onLinkClicked() {
BaseSettingsFragment.showInstance(mapActivity, BaseSettingsFragment.SettingsScreenType.VEHICLE_PARAMETERS, BaseSettingsFragment.showInstance(mapActivity, VEHICLE_PARAMETERS, mapActivity.getRoutingHelper().getAppMode());
mapActivity.getRoutingHelper().getAppMode());
} }
} }

View file

@ -42,7 +42,7 @@ public enum VehicleSizeAssets {
public static VehicleSizeAssets getAssets(String parameterName, GeneralRouterProfile routerProfile) { public static VehicleSizeAssets getAssets(String parameterName, GeneralRouterProfile routerProfile) {
for (VehicleSizeAssets type : VehicleSizeAssets.values()) { for (VehicleSizeAssets type : VehicleSizeAssets.values()) {
if (type.routerParameterName.equals(parameterName) && type.routerProfile.equals(routerProfile)) { if (type.routerParameterName.equals(parameterName) && type.routerProfile == routerProfile) {
return type; return type;
} }
} }