Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1g5 committed Jan 10, 2025
1 parent ab5d325 commit 5c9ecaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/src/org/commcare/tasks/EntityLoaderTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public void publishEntityLoadingProgress(EntityLoadingProgressPhase phase, int p

@Override
protected void onProgressUpdate(Integer... values) {
listener.deliverProgress(values);
if (listener != null) {
listener.deliverProgress(values);
}
}
}
2 changes: 1 addition & 1 deletion app/src/org/commcare/tasks/PrimeEntityCacheHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PrimeEntityCacheHelper private constructor() : Cancellable {

@JvmStatic
fun getInstance() =
instance ?: synchronized(this) {
instance ?: synchronized(PrimeEntityCacheHelper::class) {
instance ?: PrimeEntityCacheHelper().also { instance = it }
}

Expand Down

0 comments on commit 5c9ecaa

Please sign in to comment.