package com.epson.cameracopy.p006ui;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

import java.util.List;

/* renamed from: com.epson.cameracopy.ui.ItemDataAdapter */
/* compiled from: FolderSelectActivity */
class ItemDataAdapter extends ArrayAdapter<ItemData> {
    private final Context mContext;
    private final LayoutInflater mLayoutInflater = ((LayoutInflater) this.mContext.getSystemService("layout_inflater"));

    public ItemDataAdapter(Context context, int i, List<ItemData> list) {
        super(context, i, list);
        this.mContext = context;
    }

    public View getView(int i, View view, ViewGroup viewGroup) {
        if (view == null) {
            view = this.mLayoutInflater.inflate(R.layout.file_select_row, (ViewGroup) null);
        }
        ItemData itemData = (ItemData) getItem(i);
        if (itemData != null) {
            itemData.DrawItem(i, view, viewGroup);
        }
        return view;
    }
}
