package ῲ.䀟.K;

import android.content.Context;
import android.util.DisplayMetrics;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;

/* renamed from: ῲ.䀟.K.ᓣ  reason: contains not printable characters */
/* compiled from: PagerSnapHelper */
public class C2310 extends C2329 {

    /* renamed from: K  reason: contains not printable characters */
    public final /* synthetic */ C2331 f7974;

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public C2310(C2331 r1, Context context) {
        super(context);
        this.f7974 = r1;
    }

    @Override // ῲ.䀟.K.C2329
    public float calculateSpeedPerPixel(DisplayMetrics displayMetrics) {
        return 100.0f / ((float) displayMetrics.densityDpi);
    }

    @Override // ῲ.䀟.K.C2329
    public int calculateTimeForScrolling(int i) {
        return Math.min(100, super.calculateTimeForScrolling(i));
    }

    @Override // ῲ.䀟.K.C2329, androidx.recyclerview.widget.RecyclerView.AbstractC0238
    public void onTargetFound(View view, RecyclerView.C0248 r4, RecyclerView.AbstractC0238.C0240 k) {
        C2331 r42 = this.f7974;
        int[] r3 = r42.m6115(r42.f7958.getLayoutManager(), view);
        int i = r3[0];
        int i2 = r3[1];
        int calculateTimeForDeceleration = calculateTimeForDeceleration(Math.max(Math.abs(i), Math.abs(i2)));
        if (calculateTimeForDeceleration > 0) {
            k.m819(i, i2, calculateTimeForDeceleration, this.mDecelerateInterpolator);
        }
    }
}
