Fix a display issue with notifications

This commit is contained in:
Thomas 2022-12-10 18:36:13 +01:00
parent c36d6f4bdd
commit 2ec7142561

View file

@ -367,11 +367,9 @@ public class NotificationAdapter extends RecyclerView.Adapter<RecyclerView.ViewH
} else { } else {
holderStatus.bindingNotification.status.mainContainer.setAlpha(.7f); holderStatus.bindingNotification.status.mainContainer.setAlpha(.7f);
holderStatus.bindingNotification.status.mainContainer.setVisibility(View.VISIBLE);
boolean displayMedia = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_MEDIA_NOTIFICATION), true); boolean displayMedia = sharedpreferences.getBoolean(context.getString(R.string.SET_DISPLAY_MEDIA_NOTIFICATION), true);
if (displayMedia && notification.status != null && notification.status.media_attachments != null && notification.status.media_attachments.size() > 0) { if (!displayMedia) {
holderStatus.bindingNotification.status.mediaContainer.setVisibility(View.VISIBLE); holderStatus.bindingNotification.status.attachmentsListContainer.setVisibility(View.GONE);
} else {
holderStatus.bindingNotification.status.mediaContainer.setVisibility(View.GONE); holderStatus.bindingNotification.status.mediaContainer.setVisibility(View.GONE);
} }
String title = ""; String title = "";