Selected habit Reset

Created the behavior for the habit reset button in the multiple selection mode
pull/592/head
Febon 5 years ago
parent f174620b6a
commit 91678b83e1

@ -79,6 +79,10 @@ class ListHabitsSelectionMenu @Inject constructor(
notificationTray.show(h, DateUtils.getToday(), 0) notificationTray.show(h, DateUtils.getToday(), 0)
return true return true
} }
R.id.action_reset -> {
behavior.onResetHabits()
return true
}
else -> return false else -> return false
} }

@ -129,6 +129,11 @@ public class ListHabitsSelectionMenuBehavior
void performRemove(List<Habit> selected); void performRemove(List<Habit> selected);
} }
public void onResetHabits()
{
ResetHabitsCommand command = new ResetHabitsCommand(habitList, adapter.getSelected());
command.execute();
}
public interface Screen public interface Screen
{ {

Loading…
Cancel
Save