It's somehow annoying because line A (check below) is called million times after updating just a single record:
liveQuery.addChangeListener(new LiveQuery.ChangeListener() {
public void changed(final LiveQuery.ChangeEvent event) {
int c=0;
for (Iterator<QueryRow> it = event.getRows(); it.hasNext(); ) {
c++;
// LINE A
Log.d("SSS", String.valueOf(c));
final QueryRow row = it.next();
SavedRevision currentRevision = row.getDocument().getCurrentRevision();
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
liveQueryEvent.newRowDroppedFromSky(row);
}
});
}
}
});