Commit 189f0af6 by 郭倩芳

picture修改 fresco加载的图片背景色都是黑色

parent 4ceab2ff
......@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext {
PUBLISH_GROUP_ID = "com.sobot.library" //项目包名
PUBLISH_ARTIFACT_ID = 'picture_x' //项目名
PUBLISH_VERSION = '1.2.4' //版本号
PUBLISH_VERSION = '1.2.4.1' //版本号
}
......
......@@ -62,7 +62,7 @@ public class SobotFrescoImageLoader extends SobotImageLoader {
Bitmap bitmap = params[0];
Bitmap result = null;
if (bitmap != null && !bitmap.isRecycled()) {
result = bitmap.copy(Bitmap.Config.RGB_565, false);
result = bitmap.copy(Bitmap.Config.ARGB_8888, false);
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment