Skip to content

Commit 882b0f1

Browse files
committed
fix PreloadZipUpdate
1 parent b38bd05 commit 882b0f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VideoOS/VenvyLibrary/src/main/java/cn/com/venvy/PreloadZipUpdate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void onPreExecute() {
184184

185185
@Override
186186
public void onPostExecute(List<String> cacheUrls) {
187-
VenvyFileUtil.delFolder(VenvyFileUtil.getName(VenvyFileUtil.getCachePath(App.getContext()) + LUA_ZIP_CACHE));
187+
VenvyFileUtil.delFolder(VenvyFileUtil.getCachePath(App.getContext()) + LUA_ZIP_CACHE);
188188
final JSONArray queryArray = new JSONArray();
189189
CacheZipUpdateCallback callback = getCacheLuaUpdateCallback();
190190
for (String cacheUrlPath : cacheUrls) {
@@ -240,7 +240,7 @@ private void startDownloadZipFile(final List<String> downZipUrls, final List<Str
240240
}
241241
final ArrayList<DownloadTask> arrayList = new ArrayList<>();
242242
for (String string : needDownZipUrls) {
243-
DownloadTask task = new DownloadTask(App.getContext(), string, VenvyFileUtil.getCachePath(App.getContext()) + LUA_ZIP + File.separator + Uri.parse(string).getLastPathSegment(),true);
243+
DownloadTask task = new DownloadTask(App.getContext(), string, VenvyFileUtil.getCachePath(App.getContext()) + LUA_ZIP + File.separator + Uri.parse(string).getLastPathSegment(), true);
244244
arrayList.add(task);
245245
}
246246
mDownloadTaskRunner.startTasks(arrayList, new TaskListener<DownloadTask, Boolean>() {

0 commit comments

Comments
 (0)