diff --git a/app/src/main/java/com/simplemobiletools/gallery/adapters/DirectoryAdapter.java b/app/src/main/java/com/simplemobiletools/gallery/adapters/DirectoryAdapter.java index cef761a6c..06b7a5924 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/adapters/DirectoryAdapter.java +++ b/app/src/main/java/com/simplemobiletools/gallery/adapters/DirectoryAdapter.java @@ -30,20 +30,20 @@ public class DirectoryAdapter extends BaseAdapter { @Override public View getView(int position, View convertView, ViewGroup parent) { - ViewHolder holder; + ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.directory_item, parent, false); - holder = new ViewHolder(convertView); - convertView.setTag(holder); + viewHolder = new ViewHolder(convertView); + convertView.setTag(viewHolder); } else { - holder = (ViewHolder) convertView.getTag(); + viewHolder = (ViewHolder) convertView.getTag(); } final Directory dir = mDirs.get(position); - holder.dirName.setText(dir.getName()); - holder.photoCnt.setText(String.valueOf(dir.getMediaCnt())); + viewHolder.dirName.setText(dir.getName()); + viewHolder.photoCnt.setText(String.valueOf(dir.getMediaCnt())); Glide.with(mContext).load(dir.getThumbnail()).placeholder(R.color.tmb_background).centerCrop().crossFade() - .into(holder.dirThumbnail); + .into(viewHolder.dirThumbnail); return convertView; } diff --git a/app/src/main/java/com/simplemobiletools/gallery/adapters/MediaAdapter.java b/app/src/main/java/com/simplemobiletools/gallery/adapters/MediaAdapter.java index 0f4c2c2c8..5e7603e84 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/adapters/MediaAdapter.java +++ b/app/src/main/java/com/simplemobiletools/gallery/adapters/MediaAdapter.java @@ -30,23 +30,23 @@ public class MediaAdapter extends BaseAdapter { @Override public View getView(int position, View convertView, ViewGroup parent) { final Medium medium = mMedia.get(position); - ViewHolder holder; + ViewHolder viewHolder; if (convertView == null) { convertView = mInflater.inflate(R.layout.video_item, parent, false); - holder = new ViewHolder(convertView); - convertView.setTag(holder); + viewHolder = new ViewHolder(convertView); + convertView.setTag(viewHolder); } else { - holder = (ViewHolder) convertView.getTag(); + viewHolder = (ViewHolder) convertView.getTag(); } if (medium.getIsVideo()) { - holder.playOutline.setVisibility(View.VISIBLE); + viewHolder.playOutline.setVisibility(View.VISIBLE); } else { - holder.playOutline.setVisibility(View.GONE); + viewHolder.playOutline.setVisibility(View.GONE); } final String path = medium.getPath(); - Glide.with(mContext).load(path).placeholder(R.color.tmb_background).centerCrop().crossFade().into(holder.photoThumbnail); + Glide.with(mContext).load(path).placeholder(R.color.tmb_background).centerCrop().crossFade().into(viewHolder.photoThumbnail); return convertView; }