Skip to content

Commit ff11c9d

Browse files
committed
Added a white space between text and show less
1 parent 8500abb commit ff11c9d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/src/main/java/fr/free/nrw/commons/notification/NotificationRenderer.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package fr.free.nrw.commons.notification;
22

3+
import android.util.Log;
34
import android.view.LayoutInflater;
45
import android.view.View;
56
import android.view.ViewGroup;
@@ -47,9 +48,13 @@ protected View inflate(LayoutInflater layoutInflater, ViewGroup viewGroup) {
4748
@Override
4849
public void render() {
4950
Notification notification = getContent();
50-
title.setText(notification.notificationText);
51+
StringBuilder str = new StringBuilder(notification.notificationText);
52+
str.append(" " );
53+
title.setText(str);
5154
time.setText(notification.date);
52-
description.setText(notification.description);
55+
StringBuilder desc = new StringBuilder(notification.description);
56+
desc.append(" ");
57+
description.setText(desc);
5358
switch (notification.notificationType) {
5459
case THANK_YOU_EDIT:
5560
icon.setImageResource(R.drawable.ic_edit_black_24dp);

0 commit comments

Comments
 (0)