提交 b007bfcc 编写于 作者: S Sam Judd

Always use ARGB_8888 as config on 4.1.

Fixes #129
上级 36d52a4b
......@@ -251,7 +251,8 @@ public abstract class Downsampler implements BitmapDecoder<InputStream> {
}
private static Bitmap.Config getConfig(InputStream is, DecodeFormat format) {
if (format == DecodeFormat.ALWAYS_ARGB_8888) {
// Changing configs can cause skewing on 4.1, see issue #128.
if (format == DecodeFormat.ALWAYS_ARGB_8888 || Build.VERSION.SDK_INT == Build.VERSION_CODES.JELLY_BEAN) {
return Bitmap.Config.ARGB_8888;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册