From 1eff242931017bb1e892df1487b4a33ccaaed375 Mon Sep 17 00:00:00 2001 From: Edric Chan Date: Sun, 1 Apr 2018 12:14:32 +0800 Subject: [PATCH] fix(interface-notification): add extra property --- .../com/edricchan/studybuddy/interfaces/Notification.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/edricchan/studybuddy/interfaces/Notification.java b/app/src/main/java/com/edricchan/studybuddy/interfaces/Notification.java index 826d0d8b6..a439f3115 100644 --- a/app/src/main/java/com/edricchan/studybuddy/interfaces/Notification.java +++ b/app/src/main/java/com/edricchan/studybuddy/interfaces/Notification.java @@ -6,6 +6,7 @@ import java.util.List; import static com.edricchan.studybuddy.SharedHelper.ACTION_NOTIFICATIONS_SETTINGS; +import static com.edricchan.studybuddy.SharedHelper.ACTION_SETTINGS_ICON; public class Notification { private String mUsername; @@ -43,7 +44,7 @@ public Notification(String username, String message) { this.mBody = ""; // Assume default is "uncategorised" List notificationActions = new ArrayList(); - notificationActions.add(new NotificationAction("Notification settings", ACTION_NOTIFICATIONS_SETTINGS)); + notificationActions.add(new NotificationAction(ACTION_SETTINGS_ICON, "Notification settings", ACTION_NOTIFICATIONS_SETTINGS)); this.mNotificationData = new NotificationData("uncategorised", notificationActions); } @@ -52,7 +53,7 @@ public Notification(String username, String message, String body) { this.mMessage = message; this.mBody = body; List notificationActions = new ArrayList(); - notificationActions.add(new NotificationAction("Notification settings", ACTION_NOTIFICATIONS_SETTINGS)); + notificationActions.add(new NotificationAction(ACTION_SETTINGS_ICON, "Notification settings", ACTION_NOTIFICATIONS_SETTINGS)); this.mNotificationData = new NotificationData("uncategorised", notificationActions); }