From 12299a5d2699863b973c0493d7558a3aba7d8658 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Thu, 31 Dec 2020 14:22:56 -0500 Subject: [PATCH] oops --- .../adapters/viewholder/NotificationViewHolder.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/adapters/viewholder/NotificationViewHolder.java b/app/src/main/java/awais/instagrabber/adapters/viewholder/NotificationViewHolder.java index 8915ec60..1c49dbee 100644 --- a/app/src/main/java/awais/instagrabber/adapters/viewholder/NotificationViewHolder.java +++ b/app/src/main/java/awais/instagrabber/adapters/viewholder/NotificationViewHolder.java @@ -79,7 +79,10 @@ public final class NotificationViewHolder extends RecyclerView.ViewHolder { 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); } else { binding.ivPreviewPic.setVisibility(View.VISIBLE);