what-the-bank/sources/com/airbnb/lottie/LottieImageAsset.java

54 lines
1.1 KiB
Java

package com.airbnb.lottie;
import android.graphics.Bitmap;
/* loaded from: classes.dex */
public class LottieImageAsset {
private Bitmap bitmap;
private final String dirName;
private final String fileName;
private final int height;
private final String id;
private final int width;
public LottieImageAsset(int i, int i2, String str, String str2, String str3) {
this.width = i;
this.height = i2;
this.id = str;
this.fileName = str2;
this.dirName = str3;
}
public boolean hasBitmap() {
return this.bitmap != null || (this.fileName.startsWith("data:") && this.fileName.indexOf("base64,") > 0);
}
public void setBitmap(Bitmap bitmap) {
this.bitmap = bitmap;
}
public int getWidth() {
return this.width;
}
public String getId() {
return this.id;
}
public int getHeight() {
return this.height;
}
public String getFileName() {
return this.fileName;
}
public String getDirName() {
return this.dirName;
}
public Bitmap getBitmap() {
return this.bitmap;
}
}