Fixing empty prefixes/values for "capacity" fields.

This commit is contained in:
madwasp79 2019-02-28 14:38:00 +02:00
parent 2fcb8d2748
commit a45748b1ec

View file

@ -685,8 +685,8 @@ public class AmenityMenuBuilder extends MenuBuilder {
private String[] getFormattedPrefixAndText(String key, String prefix, String value, Amenity amenity) {
DF.setRoundingMode(RoundingMode.CEILING);
String formattedValue = "";
String formattedPrefix = "";
String formattedValue = value;
String formattedPrefix = prefix;
switch (key) {
case "width":
case "height":
@ -743,9 +743,6 @@ public class AmenityMenuBuilder extends MenuBuilder {
formattedPrefix = formatPrefix(prefix, mapActivity.getResources().getString(R.string.shared_string_capacity));
}
break;
default:
formattedValue = value;
formattedPrefix = prefix;
}
return new String[]{formattedPrefix, formattedValue};
}