房间相册-公屏 修复崩溃及图片不显示
This commit is contained in:
@@ -1078,6 +1078,7 @@ public class MessageView extends FrameLayout {
|
||||
ivDiamond.setVisibility(View.INVISIBLE);
|
||||
tvValue.setVisibility(View.INVISIBLE);
|
||||
tvUnlock.setVisibility(View.INVISIBLE);
|
||||
ImageLoadUtilsV2.loadImage(ivPhoto, roomPhoto.getPhotoUrl());
|
||||
} else {
|
||||
vBottomMask.setVisibility(View.VISIBLE);
|
||||
ivGift.setVisibility(View.VISIBLE);
|
||||
@@ -1102,7 +1103,7 @@ public class MessageView extends FrameLayout {
|
||||
}
|
||||
|
||||
ivPhoto.setOnClickListener(v -> {
|
||||
if (!isMyself && !hadUnlock(roomPhoto.getId())) {
|
||||
if (roomPhoto.getType() == 2 && !isMyself && !hadUnlock(roomPhoto.getId())) {
|
||||
unlockRoomPhoto(baseViewHolder.getAbsoluteAdapterPosition(), roomPhoto);
|
||||
return;
|
||||
}
|
||||
@@ -1112,7 +1113,7 @@ public class MessageView extends FrameLayout {
|
||||
});
|
||||
|
||||
baseViewHolder.itemView.setOnClickListener(v -> {
|
||||
if (!isMyself && !hadUnlock(roomPhoto.getId())) {
|
||||
if (roomPhoto.getType() == 2 && !isMyself && !hadUnlock(roomPhoto.getId())) {
|
||||
unlockRoomPhoto(baseViewHolder.getAbsoluteAdapterPosition(), roomPhoto);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user