Skip to content

Commit

Permalink
Re-schedule cancelled work when expediting a detail sepcific cache
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed Dec 19, 2024
1 parent c4a68a6 commit d78960d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class PrimeEntityCacheHelper private constructor() : Cancellable {
fun expediteDetailWithId(detail: Detail, entities: MutableList<Entity<TreeReference>>) {
cancel()
primeEntityCacheForDetail(detail, entities)
schedulePrimeEntityCacheWorker()
}

fun isDetailInProgress(detailId: String): Boolean {
Expand Down

0 comments on commit d78960d

Please sign in to comment.