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.ImageButton; import p007c.C0485a; import p023h0.InterfaceC0808e1; import p032k0.InterfaceC1288c1; /* renamed from: j.o */ /* loaded from: classes.dex */ public class C1163o extends ImageButton implements InterfaceC0808e1, InterfaceC1288c1 { /* renamed from: d */ public final C1080d f2835d; /* renamed from: e */ public final C1171p f2836e; /* renamed from: f */ public boolean f2837f; public C1163o(Context context, AttributeSet attributeSet) { this(context, attributeSet, C0485a.imageButtonStyle); } public C1163o(Context context, AttributeSet attributeSet, int i) { super(C1091d3.m2198b(context), attributeSet, i); this.f2837f = false; C1073b3.m2264a(this, getContext()); C1080d c1080d = new C1080d(this); this.f2835d = c1080d; c1080d.m2248e(attributeSet, i); C1171p c1171p = new C1171p(this); this.f2836e = c1171p; c1171p.m1953g(attributeSet, i); } @Override // android.widget.ImageView, android.view.View public void drawableStateChanged() { super.drawableStateChanged(); C1080d c1080d = this.f2835d; if (c1080d != null) { c1080d.m2251b(); } C1171p c1171p = this.f2836e; if (c1171p != null) { c1171p.m1957c(); } } @Override // p023h0.InterfaceC0808e1 public ColorStateList getSupportBackgroundTintList() { C1080d c1080d = this.f2835d; if (c1080d != null) { return c1080d.m2250c(); } return null; } @Override // p023h0.InterfaceC0808e1 public PorterDuff.Mode getSupportBackgroundTintMode() { C1080d c1080d = this.f2835d; if (c1080d != null) { return c1080d.m2249d(); } return null; } @Override // p032k0.InterfaceC1288c1 public ColorStateList getSupportImageTintList() { C1171p c1171p = this.f2836e; if (c1171p != null) { return c1171p.m1956d(); } return null; } @Override // p032k0.InterfaceC1288c1 public PorterDuff.Mode getSupportImageTintMode() { C1171p c1171p = this.f2836e; if (c1171p != null) { return c1171p.m1955e(); } return null; } @Override // android.widget.ImageView, android.view.View public boolean hasOverlappingRendering() { return this.f2836e.m1954f() && super.hasOverlappingRendering(); } @Override // android.view.View public void setBackgroundDrawable(Drawable drawable) { super.setBackgroundDrawable(drawable); C1080d c1080d = this.f2835d; if (c1080d != null) { c1080d.m2247f(drawable); } } @Override // android.view.View public void setBackgroundResource(int i) { super.setBackgroundResource(i); C1080d c1080d = this.f2835d; if (c1080d != null) { c1080d.m2246g(i); } } @Override // android.widget.ImageView public void setImageBitmap(Bitmap bitmap) { super.setImageBitmap(bitmap); C1171p c1171p = this.f2836e; if (c1171p != null) { c1171p.m1957c(); } } @Override // android.widget.ImageView public void setImageDrawable(Drawable drawable) { C1171p c1171p = this.f2836e; if (c1171p != null && drawable != null && !this.f2837f) { c1171p.m1952h(drawable); } super.setImageDrawable(drawable); C1171p c1171p2 = this.f2836e; if (c1171p2 != null) { c1171p2.m1957c(); if (this.f2837f) { return; } this.f2836e.m1958b(); } } @Override // android.widget.ImageView public void setImageLevel(int i) { super.setImageLevel(i); this.f2837f = true; } @Override // android.widget.ImageView public void setImageResource(int i) { this.f2836e.m1951i(i); } @Override // android.widget.ImageView public void setImageURI(Uri uri) { super.setImageURI(uri); C1171p c1171p = this.f2836e; if (c1171p != null) { c1171p.m1957c(); } } @Override // p023h0.InterfaceC0808e1 public void setSupportBackgroundTintList(ColorStateList colorStateList) { C1080d c1080d = this.f2835d; if (c1080d != null) { c1080d.m2244i(colorStateList); } } @Override // p023h0.InterfaceC0808e1 public void setSupportBackgroundTintMode(PorterDuff.Mode mode) { C1080d c1080d = this.f2835d; if (c1080d != null) { c1080d.m2243j(mode); } } @Override // p032k0.InterfaceC1288c1 public void setSupportImageTintList(ColorStateList colorStateList) { C1171p c1171p = this.f2836e; if (c1171p != null) { c1171p.m1950j(colorStateList); } } @Override // p032k0.InterfaceC1288c1 public void setSupportImageTintMode(PorterDuff.Mode mode) { C1171p c1171p = this.f2836e; if (c1171p != null) { c1171p.m1949k(mode); } } }