Skip to content

Commit e23f752

Browse files
Jatin0312misaochan
authored andcommitted
Fix for issue commons-app#1380 Improved Notification UI (commons-app#1387)
1 parent ba9287f commit e23f752

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ protected View inflate(LayoutInflater layoutInflater, ViewGroup viewGroup) {
4747
@Override
4848
public void render() {
4949
Notification notification = getContent();
50-
StringBuilder str = new StringBuilder(notification.notificationText.trim());
51-
str.append(" ");
50+
String str = notification.notificationText.trim();
51+
str = str.concat(" ");
5252
title.setText(str);
5353
time.setText(notification.date);
5454
switch (notification.notificationType) {

app/src/main/res/layout/item_notification.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@
5151
app:colorClickableText="#969494"
5252
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
5353
tools:text="@string/placeholder_place_name"
54+
android:padding="12dp"
5455
/>
5556
</RelativeLayout>

0 commit comments

Comments
 (0)