Skip to content

Commit

Permalink
-cache putting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rrpvm committed May 2, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c033152 commit 9de4a50
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -115,8 +115,10 @@ class GifRequestBuilder(
gifParameters.hashCode(),
mCreatedAt = System.currentTimeMillis()
)
this.launch {
cacheRepository.putCache(model)
if (!isNeedFullLoad()) {
this.launch {
cacheRepository.putCache(model)
}
}
workManager.getJobResource<ByteArray>(jobNameId = jobId)
.submit(SharedResourceState(gif))

0 comments on commit 9de4a50

Please sign in to comment.