Few comments
This commit is contained in:
parent
11b68f914f
commit
5c59e55352
1 changed files with 9 additions and 1 deletions
|
@ -7,8 +7,16 @@ import com.bumptech.glide.GlideBuilder;
|
|||
import com.bumptech.glide.load.DecodeFormat;
|
||||
import com.bumptech.glide.module.GlideModule;
|
||||
|
||||
/**
|
||||
* Class used to update Glide module settings
|
||||
*/
|
||||
public class CoverGlideModule implements GlideModule {
|
||||
|
||||
|
||||
/**
|
||||
* Bitmaps decoded from most image formats (other than GIFs with hidden configs), will be decoded with the
|
||||
* ARGB_8888 config.
|
||||
*/
|
||||
@Override
|
||||
public void applyOptions(Context context, GlideBuilder builder) {
|
||||
builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
|
||||
|
@ -16,6 +24,6 @@ public class CoverGlideModule implements GlideModule {
|
|||
|
||||
@Override
|
||||
public void registerComponents(Context context, Glide glide) {
|
||||
|
||||
//TODO empty class?
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue