package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import com.google.android.gms.common.R;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.h1, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1348h1 extends C0788b8 implements InterfaceC1538j1 {

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ C1444i1 f550o;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1348h1(C1444i1 c1444i1, Context context) {
        super(context, null, R.attr.actionOverflowButtonStyle);
        this.f550o = c1444i1;
        setClickable(true);
        setFocusable(true);
        setVisibility(0);
        setEnabled(true);
        AbstractC0249Jp.e0(this, getContentDescription());
        setOnTouchListener(new C0965d1(this, this));
    }

    @Override // o.InterfaceC1538j1
    public final boolean b() {
        return false;
    }

    @Override // o.InterfaceC1538j1
    public final boolean c() {
        return false;
    }

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

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