show toast when connection to openkeychain could not be made

This commit is contained in:
Daniel Gultsch 2016-06-16 20:37:32 +02:00
parent dcc13d7a3d
commit fc3aefd56e
1 changed files with 9 additions and 1 deletions

View File

@ -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();
}
});
}
});