Skip to content

Commit

Permalink
feat(shared-helper): add more strings for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
EdricChan03 committed Mar 31, 2018
1 parent 94d0c0e commit cceda35
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
15 changes: 13 additions & 2 deletions app/src/main/java/com/edricchan/studybuddy/SharedHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@ public class SharedHelper {
* Intent for notification settings action button for notifications
*/
public static final String ACTION_NOTIFICATIONS_SETTINGS = "com.edricchan.studybuddy.intent.ACTION_NOTIFICATIONS_SETTINGS";

/**
* Action icon for settings
*/
public static final String ACTION_SETTINGS_ICON = "settings";
/**
* Action icon for notification
*/
public static final String ACTION_NOTIFICATION_ICON = "notification";
/**
* Action icon for mark as done
*/
public static final String ACTION_MARK_AS_DONE_ICON = "mark_as_done";
private Context mContext;

public SharedHelper(Context context) {
Expand All @@ -30,7 +41,7 @@ public SharedHelper(Context context) {
*/
private List<NotificationAction> addDefaultNotificationActions() {
List<NotificationAction> notificationActionList = new ArrayList<>();
notificationActionList.add(new NotificationAction("Configure notifications", ACTION_NOTIFICATIONS_SETTINGS));
notificationActionList.add(new NotificationAction("settings", "Configure notifications", ACTION_NOTIFICATIONS_SETTINGS));
return notificationActionList;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@
public class NotificationAction {
private String mAction;
private String mActionType;
public NotificationAction(String action, String actionType) {
private String mActionIcon;

public NotificationAction() {

}
public NotificationAction(String action, String actionType, String actionIcon) {
this.mAction = action;
this.mActionType = actionType;
this.mActionIcon = actionIcon;
}

public String getAction() {
return this.mAction;
}

public String getActionIcon() {
return this.mActionIcon;
}

public String getActionType() {
return this.mActionType;
}
Expand Down

0 comments on commit cceda35

Please sign in to comment.