aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-16 20:37:32 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-16 20:37:32 +0200
commitfc3aefd56e7f83569c2670319be5559649d845f1 (patch)
tree67a2f0cad67b704dd5f2b1c8f7ae385d68b4509a /src/main/java
parentdcc13d7a3d991132b8cb3e88eb08db61c161c510 (diff)
show toast when connection to openkeychain could not be made
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ConversationFragment.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
index eef7e703..2755a661 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();
+ }
+ });
}
});