Skip to content

Commit

Permalink
removed setting mPendingMediaUploadCallback to null as we need to kee…
Browse files Browse the repository at this point in the history
…p it in case of retry
  • Loading branch information
mzorz committed Jan 30, 2019
1 parent 0fb0ab4 commit 8cb197f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,12 @@ public void mediaFileUploadProgress(final int mediaId, final float progress) {
public void mediaFileUploadFailed(final int mediaId) {
if (isMediaUploadCallbackRegistered()) {
mPendingMediaUploadCallback.onMediaFileUploadFailed(mediaId);
mPendingMediaUploadCallback = null;
}
}

public void mediaFileUploadSucceeded(final int mediaId, final String mediaUrl, final int serverMediaId) {
if (isMediaUploadCallbackRegistered()) {
mPendingMediaUploadCallback.onMediaFileUploadSucceeded(mediaId, mediaUrl, serverMediaId);
mPendingMediaUploadCallback = null;
}
}

Expand Down

0 comments on commit 8cb197f

Please sign in to comment.