package io.flutter.plugin.platform;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.flutter.embedding.android.FlutterImageView;

/* JADX INFO: loaded from: classes.dex */
public class PlatformOverlayView extends FlutterImageView {

    @Nullable
    private a accessibilityDelegate;

    public PlatformOverlayView(Context context, int i10, int i11, a aVar) {
        super(context, i10, i11, FlutterImageView.SurfaceKind.f27848b);
        this.accessibilityDelegate = aVar;
    }

    @Override // android.view.View
    public final boolean onHoverEvent(MotionEvent motionEvent) {
        io.flutter.view.j jVar;
        a aVar = this.accessibilityDelegate;
        if (aVar == null || (jVar = aVar.f28187a) == null || !jVar.g(motionEvent, true)) {
            return super.onHoverEvent(motionEvent);
        }
        return true;
    }

    public PlatformOverlayView(@NonNull Context context) {
        this(context, 1, 1, null);
    }

    public PlatformOverlayView(@NonNull Context context, @NonNull AttributeSet attributeSet) {
        this(context, 1, 1, null);
    }
}
