Skip to content

Commit

Permalink
fix UpCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Gru110110110 committed Dec 1, 2017
1 parent fed6af8 commit b247207
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions library/src/main/java/com/seek/biscuit/Biscuit.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void asyncCompress() {
Compressor compressor = new ImageCompressor(path, targetDir, quality, compressType, ignoreAlpha, useOriginalName, thresholdSize, this);
mExecutor.execute(compressor);
} else {
iterator.remove();
log(TAG, "can not recognize the path : " + path);
}
}
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/com/seek/biscuit/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static boolean isImage(String imgPath) {
int end = imgPath.length();
if (begin == -1) return false;
String imageType = imgPath.substring(begin, end);
return format.contains(imageType);
return format.contains(imageType.toLowerCase());
}

// default cache dir
Expand Down

0 comments on commit b247207

Please sign in to comment.