diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java index d10155f1..b903f706 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/NotificationAdapter.java @@ -72,6 +72,8 @@ public class NotificationAdapter extends RecyclerView.Adapter { + if (notificationList.get(position).status != null) { + return TYPE_QUOTE; + } else { + return TYPE_HIDDEN; + } + } case "update" -> { if (notificationList.get(position).status != null) { return TYPE_UPDATE; @@ -351,7 +360,9 @@ public class NotificationAdapter extends RecyclerView.Adapter { + excludedCategoriesList.add("quote"); + dialogView.displayQuotes.setChecked(false); + } case "poll" -> { excludedCategoriesList.add("poll"); dialogView.displayPollResults.setChecked(false); @@ -163,7 +169,9 @@ public class FragmentNotificationContainer extends Fragment { notificationType = "favourite"; } else if (checkedId == R.id.display_reblogs) { notificationType = "reblog"; - } else if (checkedId == R.id.display_poll_results) { + } else if (checkedId == R.id.display_quotes) { + notificationType = "quote"; + }else if (checkedId == R.id.display_poll_results) { notificationType = "poll"; } else if (checkedId == R.id.display_updates_from_people) { notificationType = "status"; diff --git a/app/src/main/res/layouts/mastodon/layout/popup_notification_settings.xml b/app/src/main/res/layouts/mastodon/layout/popup_notification_settings.xml index bf0859a4..ffa4a46a 100644 --- a/app/src/main/res/layouts/mastodon/layout/popup_notification_settings.xml +++ b/app/src/main/res/layouts/mastodon/layout/popup_notification_settings.xml @@ -78,6 +78,15 @@ android:text="@string/notif_display_reblogs" app:icon="@drawable/ic_baseline_repeat_24" /> + + + Mentions Favourites Reblogs + Quotes Poll results Updates from people Follows