fix missing encoding storage

This commit is contained in:
Alexey Kuznetsov 2022-03-01 21:21:38 +03:00
commit f438266556
2 changed files with 9 additions and 3 deletions

View file

@ -53,7 +53,7 @@ android {
dependencies {
testImplementation 'junit:junit:4.12'
implementation ('com.github.axet:android-audio-library:1.1.5') // implementation project(':android-audio-library')
implementation ('com.github.axet:android-audio-library:1.1.6') // implementation project(':android-audio-library')
implementation ('com.github.axet:wget:1.7.0') { exclude group: 'org.json', module: 'json' }
assets('com.google.android.exoplayer:exoplayer:2.7.3') { exclude group: 'com.android.support' }
}

View file

@ -84,11 +84,17 @@ public class EncodingStorage extends HashMap<File, EncodingStorage.Info> {
public void load() {
clear();
File file = storage.getTempEncoding().getParentFile();
load(file);
load(storage.getTempEncoding().getParentFile());
Context context = storage.getContext();
load(context.getCacheDir());
load(context.getExternalCacheDir());
load(Storage.getFilesDir(context, Storage.RAW));
load(context.getExternalFilesDir(Storage.RAW));
}
public void load(File storage) {
if (storage == null)
return;
File[] ff = storage.listFiles(new FilenameFilter() {
String start = Storage.getNameNoExt(Storage.TMP_ENC);
String ext = "." + Storage.getExt(Storage.TMP_ENC);