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.plugin.collect.model.h;
import com.tencent.mm.sdk.platformtools.ab;

class CollectBillListUI$7 implements OnItemClickListener {
    final /* synthetic */ CollectBillListUI kFH;

    CollectBillListUI$7(CollectBillListUI collectBillListUI) {
        this.kFH = collectBillListUI;
    }

    public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(41191);
        ab.d("MicroMsg.CollectBillListUI", "click item: %d", new Object[]{Integer.valueOf(i)});
        if (i < 0 || i >= adapterView.getAdapter().getCount()) {
            AppMethodBeat.o(41191);
            return;
        }
        Intent intent = new Intent(this.kFH.mController.ylL, CollectBillUI.class);
        h hVar = (h) adapterView.getItemAtPosition(i);
        if (hVar == null) {
            ab.w("MicroMsg.CollectBillListUI", "invaild record: %d", new Object[]{Integer.valueOf(i)});
            AppMethodBeat.o(41191);
            return;
        }
        intent.putExtra("key_type", hVar.type);
        intent.putExtra("key_timestamp", hVar.kCc);
        intent.putExtra("key_from_scene", 2);
        this.kFH.startActivity(intent);
        com.tencent.mm.plugin.report.service.h.pYm.e(13944, new Object[]{Integer.valueOf(3)});
        AppMethodBeat.o(41191);
    }
}
