mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-14 21:15:08 -05:00
use 'interactive mode' when starting downloads from the context menu
This commit is contained in:
parent
c2813cea29
commit
a1e63944a2
@ -35,7 +35,6 @@ public class HttpDownloadConnection implements Transferable {
|
|||||||
private int mStatus = Transferable.STATUS_UNKNOWN;
|
private int mStatus = Transferable.STATUS_UNKNOWN;
|
||||||
private boolean acceptedAutomatically = false;
|
private boolean acceptedAutomatically = false;
|
||||||
private int mProgress = 0;
|
private int mProgress = 0;
|
||||||
private long mLastGuiRefresh = 0;
|
|
||||||
|
|
||||||
public HttpDownloadConnection(HttpConnectionManager manager) {
|
public HttpDownloadConnection(HttpConnectionManager manager) {
|
||||||
this.mHttpConnectionManager = manager;
|
this.mHttpConnectionManager = manager;
|
||||||
|
@ -571,7 +571,7 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||||||
|
|
||||||
private void downloadFile(Message message) {
|
private void downloadFile(Message message) {
|
||||||
activity.xmppConnectionService.getHttpConnectionManager()
|
activity.xmppConnectionService.getHttpConnectionManager()
|
||||||
.createNewDownloadConnection(message);
|
.createNewDownloadConnection(message,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cancelTransmission(Message message) {
|
private void cancelTransmission(Message message) {
|
||||||
|
@ -573,7 +573,7 @@ public class MessageAdapter extends ArrayAdapter<Message> {
|
|||||||
Toast.LENGTH_SHORT).show();
|
Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
} else if (message.treatAsDownloadable() != Message.Decision.NEVER) {
|
} else if (message.treatAsDownloadable() != Message.Decision.NEVER) {
|
||||||
activity.xmppConnectionService.getHttpConnectionManager().createNewDownloadConnection(message);
|
activity.xmppConnectionService.getHttpConnectionManager().createNewDownloadConnection(message,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user