setTargets

open fun setTargets(targets: Map<String, String>)

Replaces the current target list with the given one, WITHOUT affecting the completion status of the targets.

Pass in a map of keys and display names.

To set a target to complete, use setTargetComplete.

Make sure to call saveChanges after this.

Maptargets = new HashMap<>();
targets.put("target1", "Target 1");
targets.put("target2", "Target 2");
setTargets(targets);
saveChanges();