package com.google.android.material.bottomsheet;

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

/* JADX INFO: loaded from: classes2.dex */
public final class p extends GestureDetector.SimpleOnGestureListener {

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

    public p(BottomSheetDragHandleView bottomSheetDragHandleView) {
        this.f22334a = bottomSheetDragHandleView;
    }

    @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener
    public final boolean onDoubleTap(MotionEvent motionEvent) {
        BottomSheetDragHandleView bottomSheetDragHandleView = this.f22334a;
        if (bottomSheetDragHandleView.bottomSheetBehavior == null || !bottomSheetDragHandleView.bottomSheetBehavior.f22278j0) {
            return super.onDoubleTap(motionEvent);
        }
        bottomSheetDragHandleView.bottomSheetBehavior.J(5);
        return true;
    }

    @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
    public final boolean onDown(MotionEvent motionEvent) {
        return this.f22334a.isClickable();
    }

    @Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener
    public final boolean onSingleTapConfirmed(MotionEvent motionEvent) {
        int i10 = BottomSheetDragHandleView.f22297k;
        return this.f22334a.d();
    }
}
