Fixing empty prefixes/values for "capacity" fields.
This commit is contained in:
parent
2fcb8d2748
commit
a45748b1ec
1 changed files with 2 additions and 5 deletions
|
@ -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};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue