From 8cb197f9f95423f010a5bb68dd6b71cc39430f41 Mon Sep 17 00:00:00 2001 From: Mario Zorz Date: Wed, 30 Jan 2019 16:04:55 -0300 Subject: [PATCH] removed setting mPendingMediaUploadCallback to null as we need to keep it in case of retry --- .../org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java b/react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java index 6919daa825..c4a8485be5 100644 --- a/react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java +++ b/react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java @@ -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; } }