LFilePicker icon indicating copy to clipboard operation
LFilePicker copied to clipboard

扩展名withFileFilter筛选bug

Open yy505149 opened this issue 6 years ago • 1 comments

.withFileFilter(new String[]{".bin"}) 实际文件为demo.Bin就不显示,大小写不识别。 改为.withFileFilter(new String[]{".bin",".Bin",".bIn",".biN",".BIn",".bIN",".BiN",".BIN"}) 也不能识别,不知道什么原因。

yy505149 avatar Jul 19 '19 03:07 yy505149

在LFileFilter类,代码是这样比较的 if (file.getName().endsWith(mTypes[i].toLowerCase()) || file.getName().endsWith(mTypes[i].toUpperCase())) 自己重写个过滤比较的判断吧,另外要注意设置是否过滤了文件大小,小于设定的值文件就不会展示

kbxwn avatar Oct 22 '19 06:10 kbxwn