Skip to content

Commit 2c1f8fd

Browse files
Force fetching external files to internal storage for all cases
This is needed to fix a bug where media upload fails on devices running on versions lower than Android 10
1 parent 9c9f74f commit 2c1f8fd

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

WooCommerce/src/main/kotlin/com/woocommerce/android/media/FileUploadUtils.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ object FileUploadUtils {
135135
* @return A local {@link Uri} or null if the download failed
136136
*/
137137
private fun fetchMedia(context: Context, mediaUri: Uri): Uri? {
138-
if (MediaUtils.isInMediaStore(mediaUri)) {
139-
return mediaUri
140-
}
141-
142138
return try {
143139
MediaUtils.downloadExternalMedia(context.applicationContext, mediaUri)
144140
} catch (e: IllegalStateException) {

0 commit comments

Comments
 (0)