From be225f8bb48ee149c6a77fb865af6573f16f9140 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Tue, 19 Sep 2023 14:56:16 -0300 Subject: [PATCH] feat(mute-conversations-toggle): add success confirmation toast --- .../main/java/org/joinmastodon/android/ui/utils/UiUtils.java | 1 + mastodon/src/main/res/values/strings_mo.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java index 5153cd98fd..48feec8657 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/utils/UiUtils.java @@ -677,6 +677,7 @@ public static void confirmToggleMuteConversation(Activity activity, String accou @Override public void onSuccess(Status result){ resultCallback.run(); + Toast.makeText(activity, result.muted ? R.string.mo_muted_conversation_successfully : R.string.mo_unmuted_conversation_successfully, Toast.LENGTH_SHORT).show(); E.post(new StatusMuteChangedEvent(result)); } diff --git a/mastodon/src/main/res/values/strings_mo.xml b/mastodon/src/main/res/values/strings_mo.xml index 48505af5d3..5ed78899fc 100644 --- a/mastodon/src/main/res/values/strings_mo.xml +++ b/mastodon/src/main/res/values/strings_mo.xml @@ -35,6 +35,8 @@ Manage Notifications Take picture No camera available! + Successfully muted conversation + Successfully unmuted conversation Muting… Unmuting… Mute conversation