Fix for issue #1380 Improved Notification UI (#1387)

This commit is contained in:
Jatin0312 2018-03-31 12:41:30 +05:30 committed by Josephine Lim
parent ba9287fa8b
commit e23f7522f9
2 changed files with 3 additions and 2 deletions

View file

@ -47,8 +47,8 @@ public class NotificationRenderer extends Renderer<Notification> {
@Override @Override
public void render() { public void render() {
Notification notification = getContent(); Notification notification = getContent();
StringBuilder str = new StringBuilder(notification.notificationText.trim()); String str = notification.notificationText.trim();
str.append(" "); str = str.concat(" ");
title.setText(str); title.setText(str);
time.setText(notification.date); time.setText(notification.date);
switch (notification.notificationType) { switch (notification.notificationType) {

View file

@ -51,5 +51,6 @@
app:colorClickableText="#969494" app:colorClickableText="#969494"
android:textAppearance="@style/TextAppearance.AppCompat.Body2" android:textAppearance="@style/TextAppearance.AppCompat.Body2"
tools:text="@string/placeholder_place_name" tools:text="@string/placeholder_place_name"
android:padding="12dp"
/> />
</RelativeLayout> </RelativeLayout>