mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-30 06:39:35 +02:00
Fix:Android remove local sessions after sync
This commit is contained in:
parent
9ab37ac525
commit
b935cb5cf1
1 changed files with 1 additions and 1 deletions
|
@ -326,11 +326,11 @@ class ApiHandler(var ctx:Context) {
|
||||||
if (localSessionSyncResult.progressSynced == true) {
|
if (localSessionSyncResult.progressSynced == true) {
|
||||||
val syncResult = SyncResult(true, true, "Progress synced on server")
|
val syncResult = SyncResult(true, true, "Progress synced on server")
|
||||||
MediaEventManager.saveEvent(session, syncResult)
|
MediaEventManager.saveEvent(session, syncResult)
|
||||||
DeviceManager.dbManager.removePlaybackSession(session.id)
|
|
||||||
Log.i(tag, "Successfully synced session ${session.displayTitle} with server")
|
Log.i(tag, "Successfully synced session ${session.displayTitle} with server")
|
||||||
} else if (!localSessionSyncResult.success) {
|
} else if (!localSessionSyncResult.success) {
|
||||||
Log.e(tag, "Failed to sync session ${session.displayTitle} with server. Error: ${localSessionSyncResult.error}")
|
Log.e(tag, "Failed to sync session ${session.displayTitle} with server. Error: ${localSessionSyncResult.error}")
|
||||||
}
|
}
|
||||||
|
DeviceManager.dbManager.removePlaybackSession(session.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cb(true, null)
|
cb(true, null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue