Why bother pretending its not dirty

This commit is contained in:
libraryaddict 2014-05-09 16:31:05 +12:00
parent 578f2ce504
commit 514ad74db3

View File

@ -99,15 +99,15 @@ public class FlagWatcher {
}
value = valueByte;
}
boolean doD = watch.getDirtyState();
boolean isDirty = watch.getDirtyState();
watch = new WrappedWatchableObject(dataType, value);
if (!doD)
watch.setDirtyState(doD);
if (!isDirty)
watch.setDirtyState(false);
} else {
boolean doD = watch.getDirtyState();
boolean isDirty = watch.getDirtyState();
watch = new WrappedWatchableObject(dataType, watch.getValue());
if (!doD)
watch.setDirtyState(doD);
if (!isDirty)
watch.setDirtyState(false);
}
newList.add(watch);
}