From fc3aefd56e7f83569c2670319be5559649d845f1 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 16 Jun 2016 20:37:32 +0200 Subject: [PATCH] show toast when connection to openkeychain could not be made --- .../siacs/conversations/ui/ConversationFragment.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index eef7e7035..2755a661a 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1191,7 +1191,15 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa @Override public void error(int error, Contact contact) { - System.out.println(); + activity.runOnUiThread(new Runnable() { + @Override + public void run() { + Toast.makeText(activity, + R.string.unable_to_connect_to_keychain, + Toast.LENGTH_SHORT + ).show(); + } + }); } });