aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-16 20:37:32 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-19 20:12:30 +0200
commit24736fc04ce7a710327cb3ff3d76add2d734eb17 (patch)
tree283db056b41c4a6d41fbb8fdbcecf1bf5fa36cba /src/main
parentf2c275b1a76030d4c27ff124ce89e090f6aea584 (diff)
show toast when connection to openkeychain could not be made
Diffstat (limited to 'src/main')
-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 9874db8af..9a77896f9 100644
--- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
+++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java
@@ -1202,7 +1202,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();
+ }
+ });
}
});