mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-06 03:50:23 +02:00
Use block transaction API
This commit is contained in:
parent
f8c3667845
commit
7139c87fec
23 changed files with 59 additions and 176 deletions
|
@ -35,9 +35,7 @@ object ApplyServerDataStatus {
|
|||
}
|
||||
|
||||
fun applyServerDataStatusSync(status: ServerDataStatus, database: Database, platformIntegration: PlatformIntegration) {
|
||||
database.beginTransaction()
|
||||
|
||||
try {
|
||||
database.runInTransaction {
|
||||
run {
|
||||
// apply ful version until and message
|
||||
|
||||
|
@ -462,10 +460,6 @@ object ApplyServerDataStatus {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
database.setTransactionSuccessful()
|
||||
} finally {
|
||||
database.endTransaction()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue