Loading app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonNotification.java +7 −2 Original line number Diff line number Diff line Loading @@ -226,6 +226,7 @@ public class FragmentMastodonNotification extends Fragment implements Notificati excludeType.add("follow"); excludeType.add("favourite"); excludeType.add("reblog"); excludeType.add("quote"); excludeType.add("poll"); excludeType.add("follow_request"); excludeType.add("mention"); Loading @@ -249,6 +250,8 @@ public class FragmentMastodonNotification extends Fragment implements Notificati excludeType.remove("favourite"); } else if (notificationType == NotificationTypeEnum.REBLOGS) { excludeType.remove("reblog"); } else if (notificationType == NotificationTypeEnum.QUOTES) { excludeType.remove("quote"); } else if (notificationType == NotificationTypeEnum.POLLS) { excludeType.remove("poll"); } else if (notificationType == NotificationTypeEnum.UPDATES) { Loading Loading @@ -723,10 +726,12 @@ public class FragmentMastodonNotification extends Fragment implements Notificati MENTIONS("MENTIONS"), @SerializedName("FAVOURITES") FAVOURITES("FAVOURITES"), @SerializedName("REBLOGS") UPDATES("UPDATES"), @SerializedName("UPDATES") UPDATES("UPDATES"), @SerializedName("REBLOGS") REBLOGS("REBLOGS"), @SerializedName("QUOTES") QUOTES("QUOTES"), @SerializedName("POLLS") POLLS("POLLS"), @SerializedName("ADMIN_SIGNUP") Loading app/src/main/java/app/fedilab/android/mastodon/ui/pageadapter/FedilabNotificationPageAdapter.java +7 −5 Original line number Diff line number Diff line Loading @@ -69,16 +69,18 @@ public class FedilabNotificationPageAdapter extends FragmentStatePagerAdapter { case 3 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.REBLOGS); case 4 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.POLLS); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.QUOTES); case 5 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.TOOTS); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.POLLS); case 6 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.FOLLOWS); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.TOOTS); case 7 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.UPDATES); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.FOLLOWS); case 8 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.ADMIN_SIGNUP); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.UPDATES); case 9 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.ADMIN_SIGNUP); case 10 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.ADMIN_REPORT); } } Loading Loading
app/src/main/java/app/fedilab/android/mastodon/ui/fragment/timeline/FragmentMastodonNotification.java +7 −2 Original line number Diff line number Diff line Loading @@ -226,6 +226,7 @@ public class FragmentMastodonNotification extends Fragment implements Notificati excludeType.add("follow"); excludeType.add("favourite"); excludeType.add("reblog"); excludeType.add("quote"); excludeType.add("poll"); excludeType.add("follow_request"); excludeType.add("mention"); Loading @@ -249,6 +250,8 @@ public class FragmentMastodonNotification extends Fragment implements Notificati excludeType.remove("favourite"); } else if (notificationType == NotificationTypeEnum.REBLOGS) { excludeType.remove("reblog"); } else if (notificationType == NotificationTypeEnum.QUOTES) { excludeType.remove("quote"); } else if (notificationType == NotificationTypeEnum.POLLS) { excludeType.remove("poll"); } else if (notificationType == NotificationTypeEnum.UPDATES) { Loading Loading @@ -723,10 +726,12 @@ public class FragmentMastodonNotification extends Fragment implements Notificati MENTIONS("MENTIONS"), @SerializedName("FAVOURITES") FAVOURITES("FAVOURITES"), @SerializedName("REBLOGS") UPDATES("UPDATES"), @SerializedName("UPDATES") UPDATES("UPDATES"), @SerializedName("REBLOGS") REBLOGS("REBLOGS"), @SerializedName("QUOTES") QUOTES("QUOTES"), @SerializedName("POLLS") POLLS("POLLS"), @SerializedName("ADMIN_SIGNUP") Loading
app/src/main/java/app/fedilab/android/mastodon/ui/pageadapter/FedilabNotificationPageAdapter.java +7 −5 Original line number Diff line number Diff line Loading @@ -69,16 +69,18 @@ public class FedilabNotificationPageAdapter extends FragmentStatePagerAdapter { case 3 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.REBLOGS); case 4 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.POLLS); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.QUOTES); case 5 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.TOOTS); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.POLLS); case 6 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.FOLLOWS); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.TOOTS); case 7 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.UPDATES); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.FOLLOWS); case 8 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.ADMIN_SIGNUP); bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.UPDATES); case 9 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.ADMIN_SIGNUP); case 10 -> bundle.putSerializable(Helper.ARG_NOTIFICATION_TYPE, FragmentMastodonNotification.NotificationTypeEnum.ADMIN_REPORT); } } Loading