Merge branch 'dev' of git://github.com/rsri/uhabits into pull/cancel_notification

This commit is contained in:
2017-11-14 21:54:16 -06:00
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);