package z;

import android.content.Context;
import android.widget.EdgeEffect;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;

/* loaded from: classes.dex */
final class z extends EdgeEffect {

    /* renamed from: a, reason: collision with root package name */
    private final float f53077a;

    /* renamed from: b, reason: collision with root package name */
    private float f53078b;

    public z(Context context) {
        super(context);
        this.f53077a = c3.a.a(context).L0(c3.h.t(1));
    }

    public final void a(float f10) {
        float f11 = this.f53078b + f10;
        this.f53078b = f11;
        if (Math.abs(f11) > this.f53077a) {
            onRelease();
        }
    }

    @Override // android.widget.EdgeEffect
    public void onAbsorb(int i10) {
        this.f53078b = BitmapDescriptorFactory.HUE_RED;
        super.onAbsorb(i10);
    }

    @Override // android.widget.EdgeEffect
    public void onPull(float f10, float f11) {
        this.f53078b = BitmapDescriptorFactory.HUE_RED;
        super.onPull(f10, f11);
    }

    @Override // android.widget.EdgeEffect
    public void onRelease() {
        this.f53078b = BitmapDescriptorFactory.HUE_RED;
        super.onRelease();
    }

    @Override // android.widget.EdgeEffect
    public void onPull(float f10) {
        this.f53078b = BitmapDescriptorFactory.HUE_RED;
        super.onPull(f10);
    }
}
