You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

199 lines
5.4 KiB

package p028j;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.widget.ImageView;
import p023h0.InterfaceC0808e1;
import p032k0.InterfaceC1288c1;
/* renamed from: j.q */
/* loaded from: classes.dex */
public class C1183q extends ImageView implements InterfaceC0808e1, InterfaceC1288c1 {
/* renamed from: d */
public final C1080d f2875d;
/* renamed from: e */
public final C1171p f2876e;
/* renamed from: f */
public boolean f2877f;
public C1183q(Context context) {
this(context, null);
}
public C1183q(Context context, AttributeSet attributeSet) {
this(context, attributeSet, 0);
}
public C1183q(Context context, AttributeSet attributeSet, int i) {
super(C1091d3.m2198b(context), attributeSet, i);
this.f2877f = false;
C1073b3.m2264a(this, getContext());
C1080d c1080d = new C1080d(this);
this.f2875d = c1080d;
c1080d.m2248e(attributeSet, i);
C1171p c1171p = new C1171p(this);
this.f2876e = c1171p;
c1171p.m1953g(attributeSet, i);
}
@Override // android.widget.ImageView, android.view.View
public void drawableStateChanged() {
super.drawableStateChanged();
C1080d c1080d = this.f2875d;
if (c1080d != null) {
c1080d.m2251b();
}
C1171p c1171p = this.f2876e;
if (c1171p != null) {
c1171p.m1957c();
}
}
@Override // p023h0.InterfaceC0808e1
public ColorStateList getSupportBackgroundTintList() {
C1080d c1080d = this.f2875d;
if (c1080d != null) {
return c1080d.m2250c();
}
return null;
}
@Override // p023h0.InterfaceC0808e1
public PorterDuff.Mode getSupportBackgroundTintMode() {
C1080d c1080d = this.f2875d;
if (c1080d != null) {
return c1080d.m2249d();
}
return null;
}
@Override // p032k0.InterfaceC1288c1
public ColorStateList getSupportImageTintList() {
C1171p c1171p = this.f2876e;
if (c1171p != null) {
return c1171p.m1956d();
}
return null;
}
@Override // p032k0.InterfaceC1288c1
public PorterDuff.Mode getSupportImageTintMode() {
C1171p c1171p = this.f2876e;
if (c1171p != null) {
return c1171p.m1955e();
}
return null;
}
@Override // android.widget.ImageView, android.view.View
public boolean hasOverlappingRendering() {
return this.f2876e.m1954f() && super.hasOverlappingRendering();
}
@Override // android.view.View
public void setBackgroundDrawable(Drawable drawable) {
super.setBackgroundDrawable(drawable);
C1080d c1080d = this.f2875d;
if (c1080d != null) {
c1080d.m2247f(drawable);
}
}
@Override // android.view.View
public void setBackgroundResource(int i) {
super.setBackgroundResource(i);
C1080d c1080d = this.f2875d;
if (c1080d != null) {
c1080d.m2246g(i);
}
}
@Override // android.widget.ImageView
public void setImageBitmap(Bitmap bitmap) {
super.setImageBitmap(bitmap);
C1171p c1171p = this.f2876e;
if (c1171p != null) {
c1171p.m1957c();
}
}
@Override // android.widget.ImageView
public void setImageDrawable(Drawable drawable) {
C1171p c1171p = this.f2876e;
if (c1171p != null && drawable != null && !this.f2877f) {
c1171p.m1952h(drawable);
}
super.setImageDrawable(drawable);
C1171p c1171p2 = this.f2876e;
if (c1171p2 != null) {
c1171p2.m1957c();
if (this.f2877f) {
return;
}
this.f2876e.m1958b();
}
}
@Override // android.widget.ImageView
public void setImageLevel(int i) {
super.setImageLevel(i);
this.f2877f = true;
}
@Override // android.widget.ImageView
public void setImageResource(int i) {
C1171p c1171p = this.f2876e;
if (c1171p != null) {
c1171p.m1951i(i);
}
}
@Override // android.widget.ImageView
public void setImageURI(Uri uri) {
super.setImageURI(uri);
C1171p c1171p = this.f2876e;
if (c1171p != null) {
c1171p.m1957c();
}
}
@Override // p023h0.InterfaceC0808e1
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
C1080d c1080d = this.f2875d;
if (c1080d != null) {
c1080d.m2244i(colorStateList);
}
}
@Override // p023h0.InterfaceC0808e1
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
C1080d c1080d = this.f2875d;
if (c1080d != null) {
c1080d.m2243j(mode);
}
}
@Override // p032k0.InterfaceC1288c1
public void setSupportImageTintList(ColorStateList colorStateList) {
C1171p c1171p = this.f2876e;
if (c1171p != null) {
c1171p.m1950j(colorStateList);
}
}
@Override // p032k0.InterfaceC1288c1
public void setSupportImageTintMode(PorterDuff.Mode mode) {
C1171p c1171p = this.f2876e;
if (c1171p != null) {
c1171p.m1949k(mode);
}
}
}