pull/14/head
Sam Bosley 13 years ago
parent 71a14e78fd
commit aa7f992980

@ -297,6 +297,7 @@ public class DatabaseDao<TYPE extends AbstractModel> {
boolean recordOutstanding = shouldRecordOutstanding(item);
final AtomicBoolean result = new AtomicBoolean(false);
synchronized(database) {
if (recordOutstanding) { // begin transaction
database.getDatabase().beginTransactionWithListener(new SQLiteTransactionListener() {
@Override
@ -325,6 +326,7 @@ public class DatabaseDao<TYPE extends AbstractModel> {
onModelUpdated(item, recordOutstanding && numOutstanding > 0);
item.markSaved();
}
}
return result.get();
}

Loading…
Cancel
Save