package J0;

import android.view.GestureDetector;
import android.view.MotionEvent;

/* JADX INFO: loaded from: classes.dex */
public final class G0 implements GestureDetector.OnGestureListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ H0 f2876a;

    public G0(H0 h0) {
        this.f2876a = h0;
    }

    @Override // android.view.GestureDetector.OnGestureListener
    public final boolean onDown(MotionEvent motionEvent) {
        return true;
    }

    @Override // android.view.GestureDetector.OnGestureListener
    public final boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f6, float f7) {
        H0 h0 = this.f2876a;
        if (!h0.f2880c) {
            int i6 = h0.f2879b;
            C0384t c0384t = h0.f2878a;
            if (i6 == 1) {
                if (Math.abs(f6) > Math.abs(f7)) {
                    ((n0.o) c0384t.f3065b.getFocusOwner()).h(f6 > 0.0f ? 1 : 2, false);
                    return true;
                }
            } else if (i6 == 2 && Math.abs(f7) > Math.abs(f6)) {
                ((n0.o) c0384t.f3065b.getFocusOwner()).h(f7 > 0.0f ? 1 : 2, false);
            }
        }
        return true;
    }

    @Override // android.view.GestureDetector.OnGestureListener
    public final boolean onScroll(MotionEvent motionEvent, MotionEvent motionEvent2, float f6, float f7) {
        return true;
    }

    @Override // android.view.GestureDetector.OnGestureListener
    public final boolean onSingleTapUp(MotionEvent motionEvent) {
        return true;
    }

    @Override // android.view.GestureDetector.OnGestureListener
    public final void onLongPress(MotionEvent motionEvent) {
    }

    @Override // android.view.GestureDetector.OnGestureListener
    public final void onShowPress(MotionEvent motionEvent) {
    }
}
