mirror of
https://github.com/mollyim/mollyim-insider-android.git
synced 2025-05-13 05:40:53 +01:00
Fix runPostSuccessfulTransaction behavior.
This commit is contained in:
parent
f3e371995a
commit
9d4938a350
1 changed files with 4 additions and 6 deletions
|
@ -317,13 +317,11 @@ 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();
|
||||
Set<Runnable> tasks = getPostSuccessfulTransactionTasks();
|
||||
for (Runnable r : new HashSet<>(tasks)) {
|
||||
r.run();
|
||||
}
|
||||
tasks.clear();
|
||||
}
|
||||
|
||||
public void setTransactionSuccessful() {
|
||||
|
|
Loading…
Reference in a new issue