Skip to content

Commit db2d626

Browse files
Merge pull request #12127 from woocommerce/issue/12126-fix-image-upload-issues
Issue/12126 fix image upload issues
2 parents 17b315f + d5c3154 commit db2d626

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- [**] Product Creation AI V2: Milestone 1 which simplifies package photo flow and revamps UI. [https://github.com/woocommerce/woocommerce-android/issues/11800]
1212
- [*] The more screen shows proper loading button statuses [https://github.com/woocommerce/woocommerce-android/pull/11968]
1313
- [*] [Login] Improved login reliability by addressing some edge-case issues [https://github.com/woocommerce/woocommerce-android/pull/12033]
14+
- [*] Fix an issue with image upload on devices running Android 8 and 9 [https://github.com/woocommerce/woocommerce-android/pull/12127]
1415

1516
19.5
1617
-----

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) {

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ ext {
117117
materialVersion = '1.6.1'
118118
hiltJetpackVersion = '1.1.0'
119119
wordPressUtilsVersion = '3.5.0'
120-
mediapickerVersion = '0.3.0'
120+
mediapickerVersion = '0.3.1'
121121
wordPressLoginVersion = '1.17.0'
122122
aboutAutomatticVersion = '0.0.6'
123123
automatticTracksVersion = '5.0.0'

0 commit comments

Comments
 (0)