修复一处可能的空指针错误
This commit is contained in:
parent
cae0599307
commit
cce8e43c24
@ -118,7 +118,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder {
|
|||||||
svga_new_user_gif.stopAnimation();
|
svga_new_user_gif.stopAnimation();
|
||||||
svga_new_user_gif.clear();
|
svga_new_user_gif.clear();
|
||||||
} else if ("name_true".equals(str)) {
|
} else if ("name_true".equals(str)) {
|
||||||
if (LiveRoomViewHolder.mName.getText().length() <= 4) {
|
if (LiveRoomViewHolder.mName != null && LiveRoomViewHolder.mName.getText().length() <= 4) {
|
||||||
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116), DpUtil.dp2px(40));
|
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(DpUtil.dp2px(116), DpUtil.dp2px(40));
|
||||||
layoutParams.setMargins(DpUtil.dp2px(80), DpUtil.dp2px(80), 0, 0);
|
layoutParams.setMargins(DpUtil.dp2px(80), DpUtil.dp2px(80), 0, 0);
|
||||||
svga_new_user_follow.setLayoutParams(layoutParams);
|
svga_new_user_follow.setLayoutParams(layoutParams);
|
||||||
|
Loading…
Reference in New Issue
Block a user