package m;

import android.content.Context;
import android.graphics.drawable.Drawable;
import com.riyaz.zvytour.R;
import l.ViewOnTouchListenerC0818a;

/* JADX INFO: renamed from: m.g, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0857g extends C0888w implements InterfaceC0861i {

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final /* synthetic */ C0859h f9158n;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0857g(C0859h c0859h, Context context) {
        super(context, R.attr.actionOverflowButtonStyle);
        this.f9158n = c0859h;
        setClickable(true);
        setFocusable(true);
        setVisibility(0);
        setEnabled(true);
        S4.d.G(this, getContentDescription());
        setOnTouchListener(new ViewOnTouchListenerC0818a(this, this));
    }

    @Override // m.InterfaceC0861i
    public final boolean a() {
        return false;
    }

    @Override // m.InterfaceC0861i
    public final boolean c() {
        return false;
    }

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

    @Override // android.widget.ImageView
    public final boolean setFrame(int i, int i5, int i6, int i7) {
        boolean frame = super.setFrame(i, i5, i6, i7);
        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;
    }
}
