Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 4446d4a

Browse files
author
caiyuwei
committed
fix: Unable to parse svga of assets directory
1 parent 2ad4490 commit 4446d4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/src/main/java/com/opensource/svgaplayer/SVGAParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ class SVGAParser(context: Context?) {
380380
return
381381
}
382382
try {
383-
val cacheDir = File(mContext?.cacheDir?.absolutePath + "/" + cacheKey + "/")
383+
val cacheDir = SVGACache.buildCacheDir(cacheKey)
384384
File(cacheDir, "movie.binary").takeIf { it.isFile }?.let { binaryFile ->
385385
try {
386386
LogUtils.info(TAG, "binary change to entity")

0 commit comments

Comments
 (0)