Removed redundant space character in notification

This commit is contained in:
2026-06-11 16:51:57 +02:00
parent 887e6de3e4
commit 7a9e03ed4d
@@ -672,7 +672,11 @@ public class AutomationService extends Service implements OnInitListener
lastRuleString = instance.getResources().getString(R.string.lastRule) + " n./a.";
}
String textToDisplay = bodyText + " " + lastRuleString;
String textToDisplay;
if(bodyText.length() > 0)
textToDisplay = bodyText + " " + lastRuleString;
else
textToDisplay = lastRuleString;
if(notificationBuilder == null)
notificationBuilder = createServiceNotificationBuilder();