package com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.widget.verticalviewpager.adapter;

import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.m;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.sns.storage.AdLandingPagesStorage.AdLandingPageComponent.component.ad;

class ContentFragment$1 extends m {
    final /* synthetic */ ContentFragment rdr;

    ContentFragment$1(ContentFragment contentFragment) {
        this.rdr = contentFragment;
    }

    public final void a(RecyclerView recyclerView, int i, int i2) {
        AppMethodBeat.i(37613);
        super.a(recyclerView, i, i2);
        if (ContentFragment.a(this.rdr).rdw != null && ContentFragment.a(this.rdr).rdw.getVisibility() == 0) {
            ContentFragment.a(this.rdr).rdw.scrollBy(i, i2);
        }
        AppMethodBeat.o(37613);
    }

    public final void c(RecyclerView recyclerView, int i) {
        AppMethodBeat.i(37614);
        super.c(recyclerView, i);
        ContentFragment.a(this.rdr, i);
        if (i == 0) {
            if (ContentFragment.b(this.rdr)) {
                this.rdr.cqd();
                AppMethodBeat.o(37614);
                return;
            }
        } else if (i == 1) {
            this.rdr.cqe();
            ad.eQ(this.rdr.getContext());
        }
        AppMethodBeat.o(37614);
    }
}
