package com.tencent.mm.plugin.sns.ui;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ak;

class SnsCommentDetailUI$c implements Runnable {
    int Ro = -1;
    int itemHeight;
    private int offset = 0;
    final /* synthetic */ SnsCommentDetailUI rqN;
    private int rro = -1;
    private int rrp = 10;

    SnsCommentDetailUI$c(SnsCommentDetailUI snsCommentDetailUI) {
        this.rqN = snsCommentDetailUI;
    }

    public final void run() {
        AppMethodBeat.i(38833);
        this.rrp = 10;
        SnsCommentDetailUI.b(this.rqN);
        this.rro = SnsCommentDetailUI.c(this.rqN).getTop();
        int i = this.rro - this.itemHeight;
        ab.i("MicroMsg.SnsCommentDetailUI", "list.bottom: %d, listOriginalBottom: %d, footerTop: %d, commentFooter.getTop: %d, topSelection: %d", new Object[]{Integer.valueOf(SnsCommentDetailUI.a(this.rqN).getBottom()), Integer.valueOf(SnsCommentDetailUI.d(this.rqN)), Integer.valueOf(this.rro), Integer.valueOf(SnsCommentDetailUI.c(this.rqN).getTop()), Integer.valueOf(i)});
        if (i == this.offset) {
            SnsCommentDetailUI.a(this.rqN).setSelectionFromTop(SnsCommentDetailUI.a(this.rqN).getHeaderViewsCount() + this.Ro, i);
            this.rrp = 0;
            this.offset = 0;
            AppMethodBeat.o(38833);
            return;
        }
        int i2 = this.rrp;
        this.rrp = i2 - 1;
        if (i2 > 0) {
            new ak().postDelayed(this, 100);
            this.offset = i;
            AppMethodBeat.o(38833);
            return;
        }
        this.offset = 0;
        this.rrp = 0;
        AppMethodBeat.o(38833);
    }
}
