Allow some objectives to go back.

This commit is contained in:
Tanja Schmidt 2018-09-11 22:27:23 +02:00
parent a5d1905be8
commit c40907b951

View file

@ -177,7 +177,7 @@ public class ObjectivesFragment extends SubscriberFragment {
objective.setAccomplishedOn(null);
objective.setStartedOn(null);
if (position > 0) {
Objective prevObj = ObjectivesPlugin.getObjectives().get(position - 1);
Objective prevObj = ObjectivesPlugin.getPlugin().getObjectives().get(position - 1);
prevObj.setAccomplishedOn(null);
}
notifyDataSetChanged();