Allow some objectives to go back.
This commit is contained in:
parent
a5d1905be8
commit
c40907b951
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue