Remove emptyOrNull text check from InfoboxOverlay

This is unnecessary as it should be checked when drawing the text.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-21 16:41:53 +01:00
parent 7df862de4d
commit dad7b05e6a

View File

@@ -99,10 +99,7 @@ public class InfoBoxOverlay extends Overlay
final Color color = box.getTextColor();
final InfoBoxComponent infoBoxComponent = new InfoBoxComponent();
if (!Strings.isNullOrEmpty(text))
{
infoBoxComponent.setText(text);
}
infoBoxComponent.setText(text);
if (color != null)
{
infoBoxComponent.setColor(color);