package n;

import android.content.Context;
import android.graphics.drawable.Drawable;
import com.martsnew.tv.R;
import m.ViewOnTouchListenerC1140a;

/* JADX INFO: renamed from: n.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1210g extends C1237u implements InterfaceC1214i {

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ C1212h f14841t;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1210g(C1212h c1212h, Context context) {
        super(context, R.attr.actionOverflowButtonStyle);
        this.f14841t = c1212h;
        setClickable(true);
        setFocusable(true);
        setVisibility(0);
        setEnabled(true);
        n4.u0.z(this, getContentDescription());
        setOnTouchListener(new ViewOnTouchListenerC1140a(this, this));
    }

    @Override // n.InterfaceC1214i
    public final boolean a() {
        return false;
    }

    @Override // n.InterfaceC1214i
    public final boolean c() {
        return false;
    }

    @Override // android.view.View
    public final boolean performClick() {
        if (super.performClick()) {
            return true;
        }
        playSoundEffect(0);
        this.f14841t.i();
        return true;
    }

    @Override // android.widget.ImageView
    public final boolean setFrame(int i, int i5, int i8, int i9) {
        boolean frame = super.setFrame(i, i5, i8, i9);
        Drawable drawable = getDrawable();
        Drawable background = getBackground();
        if (drawable != null && background != null) {
            int width = getWidth();
            int height = getHeight();
            int iMax = Math.max(width, height) / 2;
            int paddingLeft = (width + (getPaddingLeft() - getPaddingRight())) / 2;
            int paddingTop = (height + (getPaddingTop() - getPaddingBottom())) / 2;
            background.setHotspotBounds(paddingLeft - iMax, paddingTop - iMax, paddingLeft + iMax, paddingTop + iMax);
        }
        return frame;
    }
}
