fix:捕获一处异常导致的闪退问题

This commit is contained in:
zlzw 2022-09-07 18:36:03 +08:00
parent 16bffa1f15
commit 8b784e134e

View File

@ -729,7 +729,12 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
} }
}); });
findViewById(R.id.hot_btn).setOnClickListener(this); findViewById(R.id.hot_btn).setOnClickListener(this);
try {
Glide.with(mContext).asGif().load(R.drawable.fans_medal).into(mViewMedal); Glide.with(mContext).asGif().load(R.drawable.fans_medal).into(mViewMedal);
}catch (Exception e){
System.err.println("发生异常行为");
e.printStackTrace();
}
//用户头像列表 //用户头像列表
mUserRecyclerView = (RecyclerView) findViewById(R.id.user_recyclerView); mUserRecyclerView = (RecyclerView) findViewById(R.id.user_recyclerView);