jimu-decompiled/sources/com/bumptech/glide/load/resource/transcode/BitmapDrawableTranscoder.java
2025-05-13 19:24:51 +02:00

25 lines
903 B
Java

package com.bumptech.glide.load.resource.transcode;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import com.bumptech.glide.load.Options;
import com.bumptech.glide.load.engine.Resource;
import com.bumptech.glide.load.resource.bitmap.LazyBitmapDrawableResource;
import com.bumptech.glide.util.Preconditions;
/* loaded from: classes.dex */
public class BitmapDrawableTranscoder implements ResourceTranscoder<Bitmap, BitmapDrawable> {
private final Resources a;
public BitmapDrawableTranscoder(Resources resources) {
Preconditions.a(resources);
this.a = resources;
}
@Override // com.bumptech.glide.load.resource.transcode.ResourceTranscoder
public Resource<BitmapDrawable> a(Resource<Bitmap> resource, Options options) {
return LazyBitmapDrawableResource.a(this.a, resource);
}
}