Skip to content

Commit dbffb15

Browse files
fengxiaochuan-xiaomichenyinli
authored andcommitted
[#557]解决对webview选择文件的返回值做校验引入的bug
1 parent d501912 commit dbffb15

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/runtime/android/widgets/src/main/java/org/hapjs/widgets/view/NestedWebView.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,9 +1340,14 @@ && getComponent().getCallback() != null) {
13401340
mCacheVideoFile = null;
13411341
}
13421342
result = tmpResults;
1343+
} else {
1344+
//photo or video sometimes go here
1345+
if ((mCachePhotoFile == null || !mCachePhotoFile.exists() || mCachePhotoFile.length() == 0) && (mCacheVideoFile == null || !mCacheVideoFile.exists() || mCacheVideoFile.length() == 0)) {
1346+
//not check photo or video
1347+
result = blockPrivatePaths(result);
1348+
}
13431349
}
13441350
}
1345-
result = blockPrivatePaths(result);
13461351
if (null != result && result.length > 0 && result[0] == null) {
13471352
Log.e(
13481353
TAG,

0 commit comments

Comments
 (0)