mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
[extensions] Add OutgoingFileTransfer.setCallback()
Some methods of OutgoingFileTransfer take already the NegotiationProgress callback as argument, some do not. The API is not ideal, and adding a setter for the callback at least makes it possible to always have the callback.
This commit is contained in:
parent
f2b44f65d9
commit
c564c89c40
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ public class OutgoingFileTransfer extends FileTransfer {
|
|||
transferThread.start();
|
||||
}
|
||||
|
||||
public void setCallback(NegotiationProgress negotiationProcess) {
|
||||
this.callback = negotiationProcess;
|
||||
}
|
||||
|
||||
private void handleXMPPException(XMPPErrorException e) {
|
||||
StanzaError error = e.getStanzaError();
|
||||
if (error != null) {
|
||||
|
|
Loading…
Reference in a new issue