Open gyb3320 opened 6 years ago
我引用的是2.1.1版本: Album.image(this) .singleChoice() .filterMimeType(new Filter() { // MimeType of File. @Override public boolean filter(String attributes) { // MimeType: image/jpeg, image/png, video/mp4, video/3gp... return attributes.contains("gif"); } })
这个不是bug吧,你可以把所有的属性打印出来看看,处理的是否严谨。
ok,按照你的思路指引,已解决,方法如下: Album.image(this).filterMimeType(new Filter() { // MimeType of File. @Override public boolean filter(String attributes) { // MimeType: image/jpeg, image/png, video/mp4, video/3gp... return attributes.contains("octet-stream");//该句话过滤掉GIF } })
我引用的是2.1.1版本: Album.image(this) .singleChoice() .filterMimeType(new Filter() { // MimeType of File.
@Override
public boolean filter(String attributes) {
// MimeType: image/jpeg, image/png, video/mp4, video/3gp...
return attributes.contains("gif");
}
})