Implemented cancel to reminders of habits.

This commit is contained in:
srikanth r
2017-08-04 23:01:41 +05:30
parent b2a8c9c45f
commit e041d9041b
8 changed files with 31 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ public class WidgetBehavior
performToggle(habit, timestamp);
}
public void onCancelRepetition(@NonNull Habit habit, Timestamp timestamp)
{
onRemoveRepetition(habit, timestamp);
notificationTray.cancel(habit);
}
public void onToggleRepetition(@NonNull Habit habit, Timestamp timestamp)
{
performToggle(habit, timestamp);