package com.tencent.mm.plugin.appbrand.widget.recentview;

import android.content.Context;
import android.graphics.PointF;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.ah;
import android.util.DisplayMetrics;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class e$2 extends ah {
    final /* synthetic */ e jov;

    e$2(e eVar, Context context) {
        this.jov = eVar;
        super(context);
    }

    public final int iX() {
        return -1;
    }

    public final float c(DisplayMetrics displayMetrics) {
        return 40.0f / ((float) displayMetrics.densityDpi);
    }

    public final PointF bX(int i) {
        AppMethodBeat.i(134390);
        PointF bX = ((LinearLayoutManager) this.jov.joi.getLayoutManager()).bX(i);
        AppMethodBeat.o(134390);
        return bX;
    }

    public final void onStop() {
        AppMethodBeat.i(134391);
        super.onStop();
        ab.i("ViewPagerHelper", "alvinluo SmoothScrollerForFling onStop %d", new Object[]{Integer.valueOf(this.jov.joi.getScrollState())});
        if (this.jov.joi.getScrollState() == 0) {
            this.jov.aSb();
        }
        AppMethodBeat.o(134391);
    }
}
