Added a white space between text and show less

This commit is contained in:
Jatin Rao 2018-03-04 22:19:40 +05:30
parent 8500abba97
commit ff11c9d1f0

View file

@ -1,5 +1,6 @@
package fr.free.nrw.commons.notification; package fr.free.nrw.commons.notification;
import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -47,9 +48,13 @@ public class NotificationRenderer extends Renderer<Notification> {
@Override @Override
public void render() { public void render() {
Notification notification = getContent(); Notification notification = getContent();
title.setText(notification.notificationText); StringBuilder str = new StringBuilder(notification.notificationText);
str.append(" " );
title.setText(str);
time.setText(notification.date); time.setText(notification.date);
description.setText(notification.description); StringBuilder desc = new StringBuilder(notification.description);
desc.append(" ");
description.setText(desc);
switch (notification.notificationType) { switch (notification.notificationType) {
case THANK_YOU_EDIT: case THANK_YOU_EDIT:
icon.setImageResource(R.drawable.ic_edit_black_24dp); icon.setImageResource(R.drawable.ic_edit_black_24dp);