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

import android.os.Process;
import android.widget.AbsListView;
import android.widget.AbsListView.OnScrollListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.hardcoder.WXHardCoderJNI;
import com.tencent.mm.plugin.sns.model.af;
import com.tencent.mm.sdk.platformtools.ab;

class SnsMsgUI$3 implements OnScrollListener {
    final /* synthetic */ SnsMsgUI rub;

    SnsMsgUI$3(SnsMsgUI snsMsgUI) {
        this.rub = snsMsgUI;
    }

    public final void onScrollStateChanged(AbsListView absListView, int i) {
        AppMethodBeat.i(39067);
        if (SnsMsgUI.g(this.rub)) {
            ab.i("MicroMsg.SnsMsgUI", "onListViewScoll %s", new Object[]{Integer.valueOf(i)});
            if (i == 2) {
                WXHardCoderJNI.stopPerformance(WXHardCoderJNI.hcSNSMsgScrollEnable, SnsMsgUI.l(this.rub));
                SnsMsgUI.b(this.rub, WXHardCoderJNI.startPerformance(WXHardCoderJNI.hcSNSMsgScrollEnable, WXHardCoderJNI.hcSNSMsgScrollDelay, WXHardCoderJNI.hcSNSMsgScrollCPU, WXHardCoderJNI.hcSNSMsgScrollIO, WXHardCoderJNI.hcSNSMsgScrollThr ? Process.myTid() : 0, WXHardCoderJNI.hcSNSMsgScrollTimeout, 705, WXHardCoderJNI.hcSNSMsgScrollAction, "MicroMsg.SnsMsgUI"));
                ab.i("MicroMsg.SnsMsgUI", "summer hardcoder sns startPerformance [%s]", new Object[]{Integer.valueOf(SnsMsgUI.l(this.rub))});
            }
            if (absListView.getLastVisiblePosition() == absListView.getCount() - 1) {
                if (af.cnK().baS() > 0) {
                    af.cnK().baT();
                } else {
                    SnsMsgUI.e(this.rub).bdo();
                }
                SnsMsgUI.e(this.rub).a(null, null);
                AppMethodBeat.o(39067);
                return;
            }
            AppMethodBeat.o(39067);
            return;
        }
        AppMethodBeat.o(39067);
    }

    public final void onScroll(AbsListView absListView, int i, int i2, int i3) {
    }
}
