diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-07-10 13:28:50 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-07-10 13:28:50 +0200 |
commit | 0f5c87ca1f3dc25e0f76ff1fa4308326d1d287f0 (patch) | |
tree | a5d17aedff6fd246c15ce6ab4c829d1265a32d72 /src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java | |
parent | b02ef0c62fdf616b95401d49601f357c492fc257 (diff) |
display toast in ui on failed http download
fixes #954
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java b/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java index fc266e7b..f141987b 100644 --- a/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java +++ b/src/main/java/eu/siacs/conversations/http/HttpConnectionManager.java @@ -17,8 +17,12 @@ public class HttpConnectionManager extends AbstractConnectionManager { private List<HttpUploadConnection> uploadConnections = new CopyOnWriteArrayList<>(); public HttpConnection createNewConnection(Message message) { + return this.createNewConnection(message,false); + } + + public HttpConnection createNewConnection(Message message,boolean interactive) { HttpConnection connection = new HttpConnection(this); - connection.init(message); + connection.init(message,interactive); this.connections.add(connection); return connection; } |