fix: 修改因过滤损坏照片导致附加txt和json文件被过滤的问题
This commit is contained in:
parent
b9bb75063b
commit
f4ce86f37b
@ -38,7 +38,7 @@ android {
|
||||
minSdkVersion 24
|
||||
targetSdkVersion 30
|
||||
versionCode 106
|
||||
versionName "8.230713-正式版-OCR"
|
||||
versionName "8.230714-正式版-OCR"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
ndk {
|
||||
|
||||
@ -421,6 +421,9 @@ public class DataSaveUtils {
|
||||
Iterator<File> iterator = files.iterator();
|
||||
while (iterator.hasNext()) {
|
||||
File file = iterator.next();
|
||||
if (file.getName().endsWith(".json")||file.getName().endsWith(".txt")) {
|
||||
continue;
|
||||
}
|
||||
if (file.length()==0) {
|
||||
corruptImage.add(file);
|
||||
iterator.remove();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user