Skip to content

Commit

Permalink
fix(interface-notification): add extra property
Browse files Browse the repository at this point in the history
  • Loading branch information
EdricChan03 committed Apr 1, 2018
1 parent f83893b commit 1eff242
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -43,7 +44,7 @@ public Notification(String username, String message) {
this.mBody = "";
// Assume default is "uncategorised"
List<NotificationAction> notificationActions = new ArrayList<NotificationAction>();
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);
}

Expand All @@ -52,7 +53,7 @@ public Notification(String username, String message, String body) {
this.mMessage = message;
this.mBody = body;
List<NotificationAction> notificationActions = new ArrayList<NotificationAction>();
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);
}

Expand Down

0 comments on commit 1eff242

Please sign in to comment.