// Path: app/src/main/java/com/koma/filemanager/util/LogUtils.java
// public class LogUtils {
//     private static final boolean IS_DEBUG = true;
//     private static final String TAG = "FileManager";
// 
//     public static void i(String tag, String msg) {
//         if (IS_DEBUG) {
//             Log.i(TAG, buildString(tag, msg));
//         }
//     }
// 
//     public static void e(String tag, String msg) {
//         if (IS_DEBUG) {
//             Log.e(TAG, buildString(tag, msg));
//         }
//     }
// 
//     private static String buildString(String tag, String msg) {
//         StringBuilder sb = new StringBuilder(tag);
//         sb.append("----");
//         sb.append(msg);
//         return sb.toString();
//     }
// }


import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.koma.filemanager.util.LogUtils;
import butterknife.ButterKnife;
package com.koma.filemanager.base;




/**
 * Created by koma on 12/26/16.
 */

public class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener,
        View.OnLongClickListener {
    private static final String TAG = BaseViewHolder.class.getSimpleName();
    protected final BaseAdapter mAdapter;


    public BaseViewHolder(View view, BaseAdapter adapter) {
        super(view);
        this.mAdapter = adapter;
        ButterKnife.bind(this, view);
        view.setOnClickListener(this);
        view.setOnLongClickListener(this);
    }

    public View getItemView() {
        return itemView;
    }

    public int getBaseViewHolderPosition() {
        return getAdapterPosition();
    }


    @Override
    public void onClick(View v) {
        if (mAdapter != null) {
            mAdapter.mItemClickListener.onItemClick(getBaseViewHolderPosition());
        }
    }

    @Override
    public boolean onLongClick(View v) {
        if (mAdapter != null) {
// Path: app/src/main/java/com/koma/filemanager/util/LogUtils.java
// public class LogUtils {
//     private static final boolean IS_DEBUG = true;
//     private static final String TAG = "FileManager";
// 
//     public static void i(String tag, String msg) {
//         if (IS_DEBUG) {
//             Log.i(TAG, buildString(tag, msg));
//         }
//     }
// 
//     public static void e(String tag, String msg) {
//         if (IS_DEBUG) {
//             Log.e(TAG, buildString(tag, msg));
//         }
//     }
// 
//     private static String buildString(String tag, String msg) {
//         StringBuilder sb = new StringBuilder(tag);
//         sb.append("----");
//         sb.append(msg);
//         return sb.toString();
//     }
// }


// Path: app/src/main/java/com/koma/filemanager/base/BaseViewHolder.java
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.koma.filemanager.util.LogUtils;
import butterknife.ButterKnife;

package com.koma.filemanager.base;




/**
 * Created by koma on 12/26/16.
 */

public class BaseViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener,
        View.OnLongClickListener {
    private static final String TAG = BaseViewHolder.class.getSimpleName();
    protected final BaseAdapter mAdapter;


    public BaseViewHolder(View view, BaseAdapter adapter) {
        super(view);
        this.mAdapter = adapter;
        ButterKnife.bind(this, view);
        view.setOnClickListener(this);
        view.setOnLongClickListener(this);
    }

    public View getItemView() {
        return itemView;
    }

    public int getBaseViewHolderPosition() {
        return getAdapterPosition();
    }


    @Override
    public void onClick(View v) {
        if (mAdapter != null) {
            mAdapter.mItemClickListener.onItemClick(getBaseViewHolderPosition());
        }
    }

    @Override
    public boolean onLongClick(View v) {
        if (mAdapter != null) {
            LogUtils.i(TAG, "onItemLongClickListener position : " + getBaseViewHolderPosition());