package com.epson.cameracopy.ui;

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

import java.util.List;

import epson.print.R;

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

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

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