Skip to content

Commit 2366edd

Browse files
committed
fix(android): fix updateAsset call signature after PR #63 refactor
PR #63 changed updateAsset from 3 args to 2 args (removed context) in ReferencedAssetLoader but missed updating the call site in HybridRiveFile.
1 parent 44d0263 commit 2366edd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

android/src/main/java/com/margelo/nitro/rive/HybridRiveFile.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@ class HybridRiveFile : HybridRiveFileSpec() {
6969
val assetsData = referencedAssets.data ?: return
7070
val cache = referencedAssetCache ?: return
7171
val loader = assetLoader ?: return
72-
val context = NitroModules.applicationContext ?: return
7372

7473
val loadJobs = mutableListOf<kotlinx.coroutines.Deferred<Unit>>()
7574

7675
for ((key, assetData) in assetsData) {
7776
val asset = cache[key] ?: continue
78-
loadJobs.add(loader.updateAsset(assetData, asset, context))
77+
loadJobs.add(loader.updateAsset(assetData, asset))
7978
}
8079

8180
if (loadJobs.isNotEmpty()) {

0 commit comments

Comments
 (0)