package w8;

import android.view.View;

/* loaded from: classes.dex */
public final class h0 implements View.OnClickListener {

    /* renamed from: p, reason: collision with root package name */
    private final View.OnClickListener f40976p;

    /* renamed from: q, reason: collision with root package name */
    private long f40977q;

    public h0(View.OnClickListener onClickListener) {
        kotlin.jvm.internal.t.g(onClickListener, "onClickListener");
        this.f40976p = onClickListener;
    }

    @Override // android.view.View.OnClickListener
    public void onClick(View view) {
        long currentTimeMillis = System.currentTimeMillis();
        if (currentTimeMillis - this.f40977q > 500) {
            this.f40976p.onClick(view);
            this.f40977q = currentTimeMillis;
        }
    }
}
