Browse Source

oops

renovate/org.robolectric-robolectric-4.x
Austin Huang 4 years ago
parent
commit
12299a5d26
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 5
      app/src/main/java/awais/instagrabber/adapters/viewholder/NotificationViewHolder.java

5
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()); 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);

Loading…
Cancel
Save