1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-15 19:27:31 +00:00
This commit is contained in:
Austin Huang 2020-12-31 14:22:56 -05:00
parent 3acc29c48a
commit 12299a5d26
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -79,7 +79,10 @@ public final class NotificationViewHolder extends RecyclerView.ViewHolder {
notificationClickListener.onProfileClick(model.getUsername()); notificationClickListener.onProfileClick(model.getUsername());
}); });
if (TextUtils.isEmpty(model.getPreviewPic())) { if (model.getType() == NotificationType.AYML) {
binding.ivPreviewPic.setVisibility(View.GONE);
}
else if (TextUtils.isEmpty(model.getPreviewPic())) {
binding.ivPreviewPic.setVisibility(View.INVISIBLE); binding.ivPreviewPic.setVisibility(View.INVISIBLE);
} else { } else {
binding.ivPreviewPic.setVisibility(View.VISIBLE); binding.ivPreviewPic.setVisibility(View.VISIBLE);