修改上传图片逻辑
This commit is contained in:
@@ -152,5 +152,16 @@ public class GlideEngine {
|
||||
.apply(new RequestOptions().centerCrop().error(defaultResId))
|
||||
.into(imageView);
|
||||
}
|
||||
private static GlideEngine instance;
|
||||
|
||||
public static GlideEngine createGlideEngine() {
|
||||
if (null == instance) {
|
||||
synchronized (GlideEngine.class) {
|
||||
if (null == instance) {
|
||||
instance = new GlideEngine();
|
||||
}
|
||||
}
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user