Hi Flavio,
The problem is from Json:
TaskQuery orConditions = TaskQuery.create()
.where().state().isEqual(TaskState.SUSPENDED)
.or().state().isEqual(TaskState.RESUMED)
.or().state().isEqual(TaskState.PARKED);
TaskQuery query1 = TaskQuery.create()
.where().and(orConditions)
.orderBy().priority();
TaskQuery query2 = TaskQuery.fromJson(query1.asJson()); //The result queries of 1 and 2 are the same.
query1.where().applicationId().isEqual(1); // Correct as expected.
query2.where().applicationId().isEqual(1); // Wrong, the same as Way 1.1.
Why is query2 the same as query1 before filtering by app but different after that?