package p037.p041.p051;

import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.RippleDrawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.widget.ImageButton;

/* JADX INFO: renamed from: މ.ؠ.ގ.މ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C1618 extends ImageButton {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final C1610 f5259;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final C1619 f5260;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1618(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet, i);
        C1686.m3292(context);
        C1684.m3289(this, getContext());
        C1610 c1610 = new C1610(this);
        this.f5259 = c1610;
        c1610.m3148(attributeSet, i);
        C1619 c1619 = new C1619(this);
        this.f5260 = c1619;
        c1619.m3171(attributeSet, i);
    }

    @Override // android.widget.ImageView, android.view.View
    public void drawableStateChanged() {
        super.drawableStateChanged();
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            c1610.m3144();
        }
        C1619 c1619 = this.f5260;
        if (c1619 != null) {
            c1619.m3167();
        }
    }

    public ColorStateList getSupportBackgroundTintList() {
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            return c1610.m3149();
        }
        return null;
    }

    public PorterDuff.Mode getSupportBackgroundTintMode() {
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            return c1610.m3151();
        }
        return null;
    }

    public ColorStateList getSupportImageTintList() {
        C1687 c1687;
        C1619 c1619 = this.f5260;
        if (c1619 == null || (c1687 = c1619.f5262) == null) {
            return null;
        }
        return c1687.f5491;
    }

    public PorterDuff.Mode getSupportImageTintMode() {
        C1687 c1687;
        C1619 c1619 = this.f5260;
        if (c1619 == null || (c1687 = c1619.f5262) == null) {
            return null;
        }
        return c1687.f5492;
    }

    @Override // android.widget.ImageView, android.view.View
    public boolean hasOverlappingRendering() {
        return ((this.f5260.f5261.getBackground() instanceof RippleDrawable) ^ true) && super.hasOverlappingRendering();
    }

    @Override // android.view.View
    public void setBackgroundDrawable(Drawable drawable) {
        super.setBackgroundDrawable(drawable);
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            c1610.m3152();
        }
    }

    @Override // android.view.View
    public void setBackgroundResource(int i) {
        super.setBackgroundResource(i);
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            c1610.m3145(i);
        }
    }

    @Override // android.widget.ImageView
    public void setImageBitmap(Bitmap bitmap) {
        super.setImageBitmap(bitmap);
        C1619 c1619 = this.f5260;
        if (c1619 != null) {
            c1619.m3167();
        }
    }

    @Override // android.widget.ImageView
    public void setImageDrawable(Drawable drawable) {
        super.setImageDrawable(drawable);
        C1619 c1619 = this.f5260;
        if (c1619 != null) {
            c1619.m3167();
        }
    }

    @Override // android.widget.ImageView
    public void setImageResource(int i) {
        this.f5260.m3168(i);
    }

    @Override // android.widget.ImageView
    public void setImageURI(Uri uri) {
        super.setImageURI(uri);
        C1619 c1619 = this.f5260;
        if (c1619 != null) {
            c1619.m3167();
        }
    }

    public void setSupportBackgroundTintList(ColorStateList colorStateList) {
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            c1610.m3150(colorStateList);
        }
    }

    public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
        C1610 c1610 = this.f5259;
        if (c1610 != null) {
            c1610.m3147(mode);
        }
    }

    public void setSupportImageTintList(ColorStateList colorStateList) {
        C1619 c1619 = this.f5260;
        if (c1619 != null) {
            c1619.m3169(colorStateList);
        }
    }

    public void setSupportImageTintMode(PorterDuff.Mode mode) {
        C1619 c1619 = this.f5260;
        if (c1619 != null) {
            c1619.m3170(mode);
        }
    }
}
