// Path: src/org/ebookdroid/ui/library/adapters/BooksAdapter.java
// public static class ViewHolder extends BaseViewHolder {
// 
//     ImageView imageView;
//     TextView textView;
// 
//     @Override
//     public void init(final View convertView) {
//         super.init(convertView);
//         this.imageView = (ImageView) convertView.findViewById(R.id.thumbnailImage);
//         this.textView = (TextView) convertView.findViewById(R.id.thumbnailText);
//     }
// }


import org.ebookdroid.ui.library.IBrowserActivity;
import org.ebookdroid.ui.library.adapters.BooksAdapter.ViewHolder;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import the.pdfviewer3.R;
import java.util.ArrayList;
import java.util.IdentityHashMap;
import java.util.List;
import org.emdev.ui.adapters.BaseViewHolder;
import org.emdev.utils.FileUtils;
import org.emdev.utils.StringUtils;
    public final String mpath;

    final List<BookNode> nodes = new ArrayList<BookNode>();
    public boolean measuring = false;

    public BookShelfAdapter(final IBrowserActivity base, final int index, final String name, final String path) {
        this.base = base;
        this.id = index;
        this.name = name;
        this.path = path;
        this.mpath = FileUtils.invertMountPrefix(path);
    }

    @Override
    public int getCount() {
        return nodes.size();
    }

    @Override
    public Object getItem(final int position) {
        return nodes.get(position);
    }

    @Override
    public long getItemId(final int position) {
        return position;
    }

    @Override
    public View getView(final int position, final View view, final ViewGroup parent) {
// Path: src/org/ebookdroid/ui/library/adapters/BooksAdapter.java
// public static class ViewHolder extends BaseViewHolder {
// 
//     ImageView imageView;
//     TextView textView;
// 
//     @Override
//     public void init(final View convertView) {
//         super.init(convertView);
//         this.imageView = (ImageView) convertView.findViewById(R.id.thumbnailImage);
//         this.textView = (TextView) convertView.findViewById(R.id.thumbnailText);
//     }
// }


// Path: src/org/ebookdroid/ui/library/adapters/BookShelfAdapter.java
import org.ebookdroid.ui.library.IBrowserActivity;
import org.ebookdroid.ui.library.adapters.BooksAdapter.ViewHolder;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import the.pdfviewer3.R;
import java.util.ArrayList;
import java.util.IdentityHashMap;
import java.util.List;
import org.emdev.ui.adapters.BaseViewHolder;
import org.emdev.utils.FileUtils;
import org.emdev.utils.StringUtils;

    public final String mpath;

    final List<BookNode> nodes = new ArrayList<BookNode>();
    public boolean measuring = false;

    public BookShelfAdapter(final IBrowserActivity base, final int index, final String name, final String path) {
        this.base = base;
        this.id = index;
        this.name = name;
        this.path = path;
        this.mpath = FileUtils.invertMountPrefix(path);
    }

    @Override
    public int getCount() {
        return nodes.size();
    }

    @Override
    public Object getItem(final int position) {
        return nodes.get(position);
    }

    @Override
    public long getItemId(final int position) {
        return position;
    }

    @Override
    public View getView(final int position, final View view, final ViewGroup parent) {
        final ViewHolder holder = BaseViewHolder.getOrCreateViewHolder(ViewHolder.class, R.layout.thumbnail, view,