From 35c7fc44b14ae78489bb980a10d1dfef754d06dc Mon Sep 17 00:00:00 2001 From: "florian.haar" Date: Fri, 8 Feb 2019 12:53:04 +0100 Subject: [PATCH] No feedback when blocking contact #699 --- .../securesms/RecipientPreferenceActivity.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java b/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java index eccae0774..a2022ba3e 100644 --- a/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java +++ b/src/org/thoughtcrime/securesms/RecipientPreferenceActivity.java @@ -539,7 +539,10 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi .setMessage(R.string.ask_block_contact) .setCancelable(true) .setNegativeButton(android.R.string.cancel, null) - .setPositiveButton(R.string.menu_block_contact, (dialog, which) -> setBlocked(true)).show(); + .setPositiveButton(R.string.menu_block_contact, (dialog, which) -> { + contactToEditRecipient.setBlocked(true); + setBlocked(true); + }).show(); } private void handleUnblock() { @@ -547,7 +550,10 @@ public class RecipientPreferenceActivity extends PassphraseRequiredActionBarActi .setMessage(R.string.ask_unblock_contact) .setCancelable(true) .setNegativeButton(android.R.string.cancel, null) - .setPositiveButton(R.string.menu_unblock_contact, (dialog, which) -> setBlocked(false)).show(); + .setPositiveButton(R.string.menu_unblock_contact, (dialog, which) -> { + contactToEditRecipient.setBlocked(false); + setBlocked(false); + }).show(); } private void setBlocked(final boolean blocked) {