From d78960d0ee2de1de1bb59b592742c435723445e2 Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Thu, 19 Dec 2024 16:33:49 +0530 Subject: [PATCH] Re-schedule cancelled work when expediting a detail sepcific cache --- app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt b/app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt index a344fa3c8..d2a9e572c 100644 --- a/app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt +++ b/app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt @@ -92,6 +92,7 @@ class PrimeEntityCacheHelper private constructor() : Cancellable { fun expediteDetailWithId(detail: Detail, entities: MutableList>) { cancel() primeEntityCacheForDetail(detail, entities) + schedulePrimeEntityCacheWorker() } fun isDetailInProgress(detailId: String): Boolean {