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() {
|
||||
trace("endTransaction()", wrapped::endTransaction);
|
||||
traceLockEnd();
|
||||
if (!wrapped.inTransaction()) {
|
||||
Set<Runnable> tasks = getPostSuccessfulTransactionTasks();
|
||||
for (Runnable r : new HashSet<>(tasks)) {
|
||||
r.run();
|
||||
}
|
||||
tasks.clear();
|
||||
}
|
||||
}
|
||||
|
||||
public void setTransactionSuccessful() {
|
||||
trace("setTransactionSuccessful()", wrapped::setTransactionSuccessful);
|
||||
|
||||
Reference in New Issue
Block a user