what-the-bank/sources/com/google/android/gms/common/images/zae.java

74 lines
2.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.images;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.widget.ImageView;
import com.google.android.gms.common.internal.Asserts;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.internal.base.zai;
import com.google.android.gms.internal.base.zaj;
import java.lang.ref.WeakReference;
/* loaded from: classes.dex */
public final class zae extends zag {
private final WeakReference<ImageView> zac;
public zae(ImageView imageView, int i) {
super(Uri.EMPTY, i);
Asserts.checkNotNull(imageView);
this.zac = new WeakReference<>(imageView);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof zae)) {
return false;
}
ImageView imageView = this.zac.get();
ImageView imageView2 = ((zae) obj).zac.get();
return (imageView2 == null || imageView == null || !Objects.equal(imageView2, imageView)) ? false : true;
}
public final int hashCode() {
return 0;
}
/* JADX INFO: Access modifiers changed from: protected */
@Override // com.google.android.gms.common.images.zag
public final void zaa(Drawable drawable, boolean z, boolean z2, boolean z3) {
ImageView imageView = this.zac.get();
if (imageView != null) {
if (z2 || z3 || !(imageView instanceof zaj)) {
boolean z4 = (z2 || z) ? false : true;
if (z4) {
Drawable drawable2 = imageView.getDrawable();
if (drawable2 == null) {
drawable2 = null;
} else if (drawable2 instanceof zai) {
drawable2 = ((zai) drawable2).zaa();
}
drawable = new zai(drawable2, drawable);
}
imageView.setImageDrawable(drawable);
if (imageView instanceof zaj) {
throw null;
}
if (drawable == null || !z4) {
return;
}
((zai) drawable).zab(250);
return;
}
throw null;
}
}
public zae(ImageView imageView, Uri uri) {
super(uri, 0);
Asserts.checkNotNull(imageView);
this.zac = new WeakReference<>(imageView);
}
}