// Path: app/src/main/java/org/parallelzero/hancel/models/Contact.java
// public class Contact {
// 
//     public String photoUri;
// 
//     public String name;
// 
//     public String phone;
// 
//     public Bitmap photo;
// 
//     public Contact(String name, String phone, Bitmap photo) {
//         this.name=name;
//         this.phone=phone;
//         this.photo=photo;
//     }
// 
// 
//     public Contact(String name, String phone, String uri) {
//         this.name=name;
//         this.phone=phone;
//         this.photoUri =uri;
//     }
// 
// 
//     public String getName() {
//         return name;
//     }
// 
//     @Override
//     public String toString() {
//         return "name: "+name+" phone:"+phone;
//     }
// 
//     public String getPhone() {
//         return phone;
//     }
// 
//     public Bitmap getPhoto() {
//         return photo;
//     }
// }
// 
// Path: app/src/main/java/org/parallelzero/hancel/view/ListContactsAdapter.java
// public class ContactViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
// 
//     protected final TextView contact_name;
//     protected final TextView contact_phone;
//     protected final ImageView contact_photo;
// 
//     private final ListContactsAdapter mAdapter;
// 
// 
//     public ContactViewHolder(View itemView, ListContactsAdapter adapter) {
//         super(itemView);
//         itemView.setOnClickListener(this);
//         this.mAdapter = adapter;
//         contact_name = (TextView) itemView.findViewById(R.id.tv_contact_name);
//         contact_phone = (TextView) itemView.findViewById(R.id.tv_contact_phone);
//         contact_photo = (ImageView) itemView.findViewById(R.id.iv_contact_icon);
//     }
// 
//     @Override
//     public void onClick(View view) {
//         mAdapter.onItemHolderClick(this);
//     }
// }


import android.content.Context;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.TextView;
import org.parallelzero.hancel.R;
import org.parallelzero.hancel.models.Contact;
import org.parallelzero.hancel.view.ListContactsAdapter.ContactViewHolder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
package org.parallelzero.hancel.view;




/**
 * Created by Antonio Vanegas @hpsaturn on 10/20/15.
 */

public class ListContactsAdapter extends RecyclerView.Adapter<ContactViewHolder> implements ItemTouchHelperAdapter {

    private AdapterView.OnItemClickListener mOnItemClickListener;
    private Context ctx;
// Path: app/src/main/java/org/parallelzero/hancel/models/Contact.java
// public class Contact {
// 
//     public String photoUri;
// 
//     public String name;
// 
//     public String phone;
// 
//     public Bitmap photo;
// 
//     public Contact(String name, String phone, Bitmap photo) {
//         this.name=name;
//         this.phone=phone;
//         this.photo=photo;
//     }
// 
// 
//     public Contact(String name, String phone, String uri) {
//         this.name=name;
//         this.phone=phone;
//         this.photoUri =uri;
//     }
// 
// 
//     public String getName() {
//         return name;
//     }
// 
//     @Override
//     public String toString() {
//         return "name: "+name+" phone:"+phone;
//     }
// 
//     public String getPhone() {
//         return phone;
//     }
// 
//     public Bitmap getPhoto() {
//         return photo;
//     }
// }
// 
// Path: app/src/main/java/org/parallelzero/hancel/view/ListContactsAdapter.java
// public class ContactViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener {
// 
//     protected final TextView contact_name;
//     protected final TextView contact_phone;
//     protected final ImageView contact_photo;
// 
//     private final ListContactsAdapter mAdapter;
// 
// 
//     public ContactViewHolder(View itemView, ListContactsAdapter adapter) {
//         super(itemView);
//         itemView.setOnClickListener(this);
//         this.mAdapter = adapter;
//         contact_name = (TextView) itemView.findViewById(R.id.tv_contact_name);
//         contact_phone = (TextView) itemView.findViewById(R.id.tv_contact_phone);
//         contact_photo = (ImageView) itemView.findViewById(R.id.iv_contact_icon);
//     }
// 
//     @Override
//     public void onClick(View view) {
//         mAdapter.onItemHolderClick(this);
//     }
// }


// Path: app/src/main/java/org/parallelzero/hancel/view/ListContactsAdapter.java
import android.content.Context;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ImageView;
import android.widget.TextView;
import org.parallelzero.hancel.R;
import org.parallelzero.hancel.models.Contact;
import org.parallelzero.hancel.view.ListContactsAdapter.ContactViewHolder;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

package org.parallelzero.hancel.view;




/**
 * Created by Antonio Vanegas @hpsaturn on 10/20/15.
 */

public class ListContactsAdapter extends RecyclerView.Adapter<ContactViewHolder> implements ItemTouchHelperAdapter {

    private AdapterView.OnItemClickListener mOnItemClickListener;
    private Context ctx;
    private ArrayList<Contact> contacts = new ArrayList<>();