fix deselecting tags

This commit is contained in:
Phillip Thelen 2017-07-10 19:53:19 +02:00
parent e93cf6e044
commit ec415a8557

View file

@ -988,13 +988,14 @@ public class TaskFormActivity extends BaseActivity implements AdapterView.OnItem
taskNotes.setText(task.notes);
taskValue.setText(String.format(Locale.getDefault(), "%.2f", task.value));
for (Tag tag : task.getTags()) {
selectedTags.add(tag);
}
if (tags != null) {
fillTagCheckboxes();
}
for (Tag tag : task.getTags()) {
selectedTags.add(tag);
}
float priority = task.getPriority();
if (Math.abs(priority - 0.1) < 0.000001) {