65 lines
1.7 KiB
Java
65 lines
1.7 KiB
Java
package com.huawei.hms.support.account.result;
|
|
|
|
import android.graphics.Bitmap;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class AccountIcon implements Parcelable {
|
|
public static final Parcelable.Creator<AccountIcon> CREATOR = new Parcelable.Creator<AccountIcon>() { // from class: com.huawei.hms.support.account.result.AccountIcon.1
|
|
@Override // android.os.Parcelable.Creator
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public AccountIcon createFromParcel(Parcel parcel) {
|
|
return new AccountIcon(parcel);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public AccountIcon[] newArray(int i) {
|
|
return new AccountIcon[i];
|
|
}
|
|
};
|
|
private String a;
|
|
private Bitmap b;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public AccountIcon() {
|
|
}
|
|
|
|
private AccountIcon(Parcel parcel) {
|
|
this.a = parcel.readString();
|
|
this.b = (Bitmap) parcel.readParcelable(Bitmap.class.getClassLoader());
|
|
}
|
|
|
|
public AccountIcon(String str, Bitmap bitmap) {
|
|
this.a = str;
|
|
this.b = bitmap;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.a);
|
|
parcel.writeParcelable(this.b, i);
|
|
}
|
|
|
|
public void setIcon(Bitmap bitmap) {
|
|
this.b = bitmap;
|
|
}
|
|
|
|
public void setDescription(String str) {
|
|
this.a = str;
|
|
}
|
|
|
|
public Bitmap getIcon() {
|
|
return this.b;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return this.a;
|
|
}
|
|
}
|