From ff11c9d1f0427b34f0ac533662b01f141c153daa Mon Sep 17 00:00:00 2001 From: Jatin Rao Date: Sun, 4 Mar 2018 22:19:40 +0530 Subject: [PATCH] Added a white space between text and show less --- .../nrw/commons/notification/NotificationRenderer.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/free/nrw/commons/notification/NotificationRenderer.java b/app/src/main/java/fr/free/nrw/commons/notification/NotificationRenderer.java index 87924d286..a02b9eff4 100644 --- a/app/src/main/java/fr/free/nrw/commons/notification/NotificationRenderer.java +++ b/app/src/main/java/fr/free/nrw/commons/notification/NotificationRenderer.java @@ -1,5 +1,6 @@ package fr.free.nrw.commons.notification; +import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -47,9 +48,13 @@ public class NotificationRenderer extends Renderer { @Override public void render() { Notification notification = getContent(); - title.setText(notification.notificationText); + StringBuilder str = new StringBuilder(notification.notificationText); + str.append(" " ); + title.setText(str); time.setText(notification.date); - description.setText(notification.description); + StringBuilder desc = new StringBuilder(notification.description); + desc.append(" "); + description.setText(desc); switch (notification.notificationType) { case THANK_YOU_EDIT: icon.setImageResource(R.drawable.ic_edit_black_24dp);