mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +00:00
Fix runPostSuccessfulTransaction behavior.
This commit is contained in:
committed by
Cody Henthorne
parent
164f089d37
commit
c3ab8dddd0
@@ -317,14 +317,12 @@ public class SQLiteDatabase implements SupportSQLiteDatabase {
|
|||||||
public void endTransaction() {
|
public void endTransaction() {
|
||||||
trace("endTransaction()", wrapped::endTransaction);
|
trace("endTransaction()", wrapped::endTransaction);
|
||||||
traceLockEnd();
|
traceLockEnd();
|
||||||
if (!wrapped.inTransaction()) {
|
|
||||||
Set<Runnable> tasks = getPostSuccessfulTransactionTasks();
|
Set<Runnable> tasks = getPostSuccessfulTransactionTasks();
|
||||||
for (Runnable r : new HashSet<>(tasks)) {
|
for (Runnable r : new HashSet<>(tasks)) {
|
||||||
r.run();
|
r.run();
|
||||||
}
|
}
|
||||||
tasks.clear();
|
tasks.clear();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void setTransactionSuccessful() {
|
public void setTransactionSuccessful() {
|
||||||
trace("setTransactionSuccessful()", wrapped::setTransactionSuccessful);
|
trace("setTransactionSuccessful()", wrapped::setTransactionSuccessful);
|
||||||
|
|||||||
Reference in New Issue
Block a user