mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
parent
06b1045e09
commit
0945b19364
@ -46,7 +46,6 @@ public class GiphyAdapter extends RecyclerView.Adapter<GiphyAdapter.GiphyViewHol
|
|||||||
|
|
||||||
GiphyViewHolder(View view) {
|
GiphyViewHolder(View view) {
|
||||||
super(view);
|
super(view);
|
||||||
super.setIsRecyclable(false);
|
|
||||||
thumbnail = ViewUtil.findById(view, R.id.thumbnail);
|
thumbnail = ViewUtil.findById(view, R.id.thumbnail);
|
||||||
gifProgress = ViewUtil.findById(view, R.id.gif_progress);
|
gifProgress = ViewUtil.findById(view, R.id.gif_progress);
|
||||||
thumbnail.setOnClickListener(this);
|
thumbnail.setOnClickListener(this);
|
||||||
@ -157,6 +156,12 @@ public class GiphyAdapter extends RecyclerView.Adapter<GiphyAdapter.GiphyViewHol
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onViewRecycled(GiphyViewHolder holder) {
|
||||||
|
super.onViewRecycled(holder);
|
||||||
|
Glide.clear(holder.thumbnail);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getItemCount() {
|
public int getItemCount() {
|
||||||
return images.size();
|
return images.size();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user