package defpackage;

import android.view.KeyEvent;
import android.view.MotionEvent;
import androidx.appcompat.widget.ContentFrameLayout;

/* JADX INFO: renamed from: ˈᵚٴ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1083 extends ContentFrameLayout {

    /* JADX INFO: renamed from: ᵸˆˁ, reason: contains not printable characters */
    public final /* synthetic */ LayoutInflaterFactory2C5168 f4621;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C1083(LayoutInflaterFactory2C5168 layoutInflaterFactory2C5168, C5058 c5058) {
        super(c5058);
        this.f4621 = layoutInflaterFactory2C5168;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final boolean dispatchKeyEvent(KeyEvent keyEvent) {
        return this.f4621.m10672(keyEvent) || super.dispatchKeyEvent(keyEvent);
    }

    @Override // android.view.ViewGroup
    public final boolean onInterceptTouchEvent(MotionEvent motionEvent) {
        if (motionEvent.getAction() == 0) {
            int x = (int) motionEvent.getX();
            int y = (int) motionEvent.getY();
            if (x < -5 || y < -5 || x > getWidth() + 5 || y > getHeight() + 5) {
                LayoutInflaterFactory2C5168 layoutInflaterFactory2C5168 = this.f4621;
                layoutInflaterFactory2C5168.m10680(layoutInflaterFactory2C5168.m10679(0), true);
                return true;
            }
        }
        return super.onInterceptTouchEvent(motionEvent);
    }

    @Override // android.view.View
    public final void setBackgroundResource(int i) {
        setBackgroundDrawable(ᵥˇᵛˎ.ᵶˇᵱ(getContext(), i));
    }
}
