Skip to content

Commit

Permalink
Dogs -> pictures
Browse files Browse the repository at this point in the history
  • Loading branch information
CullyCross committed Nov 8, 2015
1 parent 409276d commit 29bba3f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* Code style: SquareAndroid (https://github.com/square/java-code-styles)
* Follow me: @tonyshkurenko
*/
public class PictureAdapter extends RecyclerView.Adapter<PictureAdapter.DogItem> {
public class PictureAdapter extends RecyclerView.Adapter<PictureAdapter.PictureItem> {

private static final String URL = "http://lorempixel.com/200/200/food/%d/%s";

Expand All @@ -45,15 +45,15 @@ public PictureAdapter(PicturesFragment fragment) {
initList();
}

@Override public DogItem onCreateViewHolder(ViewGroup viewGroup, int viewType) {
@Override public PictureItem onCreateViewHolder(ViewGroup viewGroup, int viewType) {

View v = LayoutInflater.from(viewGroup.getContext())
.inflate(R.layout.recycler_view_item_picture, viewGroup, false);

return new DogItem(v);
return new PictureItem(v);
}

@Override public void onBindViewHolder(DogItem holder, final int position) {
@Override public void onBindViewHolder(PictureItem holder, final int position) {

final Pair<Integer, Integer> pair = mIntegerPairs.get(position);

Expand Down Expand Up @@ -89,11 +89,11 @@ private void initList() {
}
}

class DogItem extends RecyclerView.ViewHolder {
class PictureItem extends RecyclerView.ViewHolder {

@Bind(R.id.image) ImageView mImage;

public DogItem(View itemView) {
public PictureItem(View itemView) {
super(itemView);
ButterKnife.bind(this, itemView);
}
Expand Down

0 comments on commit 29bba3f

Please sign in to comment.