package defpackage;

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

/* renamed from: ˑˋᵛ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2047 extends ContentFrameLayout {

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public final /* synthetic */ LayoutInflaterFactory2C4211 f8197;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2047(LayoutInflaterFactory2C4211 layoutInflaterFactory2C4211, C4416 c4416) {
        super(c4416);
        this.f8197 = layoutInflaterFactory2C4211;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final boolean dispatchKeyEvent(KeyEvent keyEvent) {
        return this.f8197.m9163(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) {
                LayoutInflaterFactory2C4211 layoutInflaterFactory2C4211 = this.f8197;
                layoutInflaterFactory2C4211.m9149(layoutInflaterFactory2C4211.m9167(0), true);
                return true;
            }
        }
        return super.onInterceptTouchEvent(motionEvent);
    }

    @Override // android.view.View
    public final void setBackgroundResource(int i) {
        setBackgroundDrawable(ᵕˏᵛ.ˑᵥˁ(getContext(), i));
    }
}
