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

import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bp.d;
import com.tencent.mm.plugin.collect.model.a;
import com.tencent.mm.sdk.platformtools.ab;

class CollectBillUI$3 implements OnItemClickListener {
    final /* synthetic */ CollectBillUI kFX;

    CollectBillUI$3(CollectBillUI collectBillUI) {
        this.kFX = collectBillUI;
    }

    public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(41213);
        if (i < 0 || i >= adapterView.getAdapter().getCount()) {
            ab.i("MicroMsg.CollectBillUI", "illegal position: %s, count: %s", new Object[]{Integer.valueOf(i), Integer.valueOf(adapterView.getAdapter().getCount())});
            AppMethodBeat.o(41213);
            return;
        }
        a aVar = (a) CollectBillUI.b(this.kFX).getItemAtPosition(i);
        if (aVar == null) {
            ab.w("MicroMsg.CollectBillUI", "invalid position: %d", new Object[]{Integer.valueOf(i)});
            AppMethodBeat.o(41213);
            return;
        }
        Intent intent = new Intent();
        intent.putExtra("scene", 2);
        intent.putExtra("trans_id", aVar.kBE);
        intent.putExtra("bill_id", aVar.kBD);
        d.b(this.kFX.mController.ylL, "order", ".ui.MallOrderTransactionInfoUI", intent);
        AppMethodBeat.o(41213);
    }
}
