|
|
@@ -23,7 +23,7 @@ public class VoiceFileUtil {
|
|
|
public static Single<File> getVoiceFile(OkHttpClient okHttpClient, @NonNull String url) {
|
|
|
return Single.create((SingleOnSubscribe<File>) emitter -> {
|
|
|
File localFile = net2LocalFile(url);
|
|
|
- DownloadUtils.downLoadCompareBeforeLocal(okHttpClient, url, localFile, DownloadUtils.voiceFile, getFileName(url), new FileDownLoadObserver<File>() {
|
|
|
+ DownloadUtils.downLoadCompareBeforeLocal(okHttpClient, url, localFile, DownloadUtils.voiceFile, DownloadUtils.FILE_PREFIX + getFileName(url), new FileDownLoadObserver<File>() {
|
|
|
@Override
|
|
|
public void onDownLoadStart() {
|
|
|
|
|
|
@@ -45,7 +45,7 @@ public class VoiceFileUtil {
|
|
|
}
|
|
|
|
|
|
private static File net2LocalFile(@NonNull String url) {
|
|
|
- String fileName = getFileName(url);
|
|
|
+ String fileName = DownloadUtils.FILE_PREFIX + getFileName(url);
|
|
|
return new File(DownloadUtils.voiceFile, fileName);
|
|
|
}
|
|
|
|