From 41847bc009daa84d9d063edbece635235810890a Mon Sep 17 00:00:00 2001 From: Zero King Date: Tue, 6 Apr 2021 15:18:52 +0000 Subject: [PATCH] Add missing breaks in switch statements (#2127) --- .../com/keylesspalace/tusky/adapter/NotificationsAdapter.java | 1 + .../com/keylesspalace/tusky/fragment/NotificationsFragment.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java index cdc43741f..92ebbfe42 100644 --- a/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java +++ b/app/src/main/java/com/keylesspalace/tusky/adapter/NotificationsAdapter.java @@ -235,6 +235,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter { holder.setupWithAccount(concreteNotificaton.getAccount(), statusDisplayOptions.animateAvatars(), statusDisplayOptions.animateEmojis()); holder.setupActionListener(accountActionListener, concreteNotificaton.getAccount().getId()); } + break; } default: } diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java index 5db3983f6..a6a3e311e 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java @@ -863,6 +863,7 @@ public class NotificationsFragment extends SFragment implements adapter.setMediaPreviewEnabled(enabled); fullyRefresh(); } + break; } case "showNotificationsFilter": { if (isAdded()) { @@ -870,6 +871,7 @@ public class NotificationsFragment extends SFragment implements updateFilterVisibility(); fullyRefreshWithProgressBar(true); } + break; } } }