Fix review
This commit is contained in:
parent
02ba511abf
commit
9c44027e99
2 changed files with 4 additions and 3 deletions
|
@ -6,6 +6,8 @@ import net.osmand.plus.R;
|
|||
import net.osmand.plus.activities.MapActivity;
|
||||
import net.osmand.plus.settings.fragments.BaseSettingsFragment;
|
||||
|
||||
import static net.osmand.plus.settings.fragments.BaseSettingsFragment.SettingsScreenType.*;
|
||||
|
||||
public class NauticalBridgeHeightWarningCard extends WarningCard {
|
||||
|
||||
public NauticalBridgeHeightWarningCard(@NonNull MapActivity mapActivity) {
|
||||
|
@ -17,7 +19,6 @@ public class NauticalBridgeHeightWarningCard extends WarningCard {
|
|||
|
||||
@Override
|
||||
protected void onLinkClicked() {
|
||||
BaseSettingsFragment.showInstance(mapActivity, BaseSettingsFragment.SettingsScreenType.VEHICLE_PARAMETERS,
|
||||
mapActivity.getRoutingHelper().getAppMode());
|
||||
BaseSettingsFragment.showInstance(mapActivity, VEHICLE_PARAMETERS, mapActivity.getRoutingHelper().getAppMode());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ public enum VehicleSizeAssets {
|
|||
|
||||
public static VehicleSizeAssets getAssets(String parameterName, GeneralRouterProfile routerProfile) {
|
||||
for (VehicleSizeAssets type : VehicleSizeAssets.values()) {
|
||||
if (type.routerParameterName.equals(parameterName) && type.routerProfile.equals(routerProfile)) {
|
||||
if (type.routerParameterName.equals(parameterName) && type.routerProfile == routerProfile) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue