修复一处Glide的Contexts可能为空的问题

This commit is contained in:
zlzw 2022-12-14 14:43:28 +08:00
parent 8f7adb3079
commit a20571e050

View File

@ -459,7 +459,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
if (dr_pk_end_gif.getVisibility() == View.GONE) { if (dr_pk_end_gif.getVisibility() == View.GONE) {
dr_pk_end_gif.setVisibility(View.VISIBLE); dr_pk_end_gif.setVisibility(View.VISIBLE);
RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置 RequestOptions options = new RequestOptions().skipMemoryCache(true);//配置
Glide.with(Contexts).asGif() Glide.with(mContext).asGif()
.apply(options)//应用配置 .apply(options)//应用配置
.load(R.mipmap.drpkend) .load(R.mipmap.drpkend)
.listener(new RequestListener<GifDrawable>() { .listener(new RequestListener<GifDrawable>() {