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:
@@ -99,10 +99,7 @@ public class InfoBoxOverlay extends Overlay
|
|||||||
final Color color = box.getTextColor();
|
final Color color = box.getTextColor();
|
||||||
|
|
||||||
final InfoBoxComponent infoBoxComponent = new InfoBoxComponent();
|
final InfoBoxComponent infoBoxComponent = new InfoBoxComponent();
|
||||||
if (!Strings.isNullOrEmpty(text))
|
infoBoxComponent.setText(text);
|
||||||
{
|
|
||||||
infoBoxComponent.setText(text);
|
|
||||||
}
|
|
||||||
if (color != null)
|
if (color != null)
|
||||||
{
|
{
|
||||||
infoBoxComponent.setColor(color);
|
infoBoxComponent.setColor(color);
|
||||||
|
|||||||
Reference in New Issue
Block a user